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

2014-11-24 14:43:46 · 作者: · 浏览: 16

然后google了一下哦,解决方法列在下面。


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


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。




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