编译Android 4.0 ICS,报错couldn't locate source file: framework/layoutlib-tests.jar

在编译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。 


按照上面的提示,我就编译通过了。


参考:

编译Android 4.0 ICS注意事项

你可能感兴趣的:(android,File,Google)