歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux編程 >> Linux編程 >> 編譯Android 4.0 ICS,報錯couldnt locate source file: framework/layoutlib-tests.jar

編譯Android 4.0 ICS,報錯couldnt locate source file: framework/layoutlib-tests.jar

日期:2017/3/1 10:35:27   编辑:Linux編程

在編譯Android4.0.1版本的言嗎的時候,在根目錄下執行lunch sdk-eng,然後執行 make sdk,出現下面的錯誤。

然後google了一下哦,解決方法列在下面。

Package SDK: out/host/linux-x86/sdk/android-sdk_eng.wangwei_linux-x86.zip

development/build/sdk.atree:229: couldn't locate source file: framework/layoutlib-tests.jar
development/build/sdk.atree:230: couldn't locate source file: system/app/ConnectivityTest.apk
development/build/sdk.atree:231: couldn't locate source file: system/app/GpsLocationTest.apk
sdk/build/tools.atree:47: couldn't locate source file: usr/share/pc-bios/bios.bin
sdk/build/tools.atree:48: couldn't locate source file: usr/share/pc-bios/vgabios-cirrus.bin
sdk/build/tools.atree:146: couldn't locate source file: framework/ddmlib-tests.jar
sdk/build/tools.atree:147: couldn't locate source file: framework/ninepatch-tests.jar
sdk/build/tools.atree:148: couldn't locate source file: framework/common-tests.jar
sdk/build/tools.atree:149: couldn't locate source file: framework/sdklib-tests.jar
sdk/build/tools.atree:150: couldn't locate source file: framework/sdkuilib-tests.jar

make: *** [out/host/linux-x86/sdk/android-sdk_eng.wangwei_linux-x86.zip] 錯誤 44



編譯 sdk 時,先運行 lunch sdk-eng,不然編譯會出錯,形如:
development/build/sdk.atree:229: couldn't locate source file: framework/layoutlib-tests.jar

lunch 的自動補全中沒有 sdk-eng,但實際上是支持的。

lunch sdk-eng 與 lunch full-eng 只有惟一的區別:一個的target是sdk,一個的是full。


按照上面的提示,我就編譯通過了。

Copyright © Linux教程網 All Rights Reserved