天天看點

Android: 從 Android Source Tree 中編譯SDK的正确方法

$ source build/envsetup.sh

$ lunch sdk-eng

$ make sdk

注意:執行make sdk前必須正确地配置,否則會出現有些檔案無法找到的錯誤:

Package SDK: out/host/linux-x86/sdk/android-sdk_eng.rzzhang_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:150: couldn't locate source file: framework/sdkuilib-tests.jar

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