天天看點

Android make sdk 錯誤解決

在編譯過程中出現錯如下錯誤提示:

usr/share/pc-bios/bios.bin   …………      tools/lib/pc-bios/bios.bin

usr/share/pc-bios/vgabios-cirrus.bin   …………     tools/lib/pc-bios/vgabios-cirrus.bin

說明在路徑:~/android_src/out/host/linux-x86/usr/share下找不到pc-bios檔案夾下找不到該檔案夾,解決方法為:

複制:~/android_src/prebuilt/common下的pc-bios檔案夾到以下目錄:~/android_src/out/host/linux-x86/usr/share即可解決,指令行輸入:

$cp ~/android_src/prebuilt/common/pc-bios   ~/android_src/out/host/linux-x86/usr/share 

……………………

docs droiddoc: out/target/common/docs/online-sdk

htmldir not a directory: out/target/common/docs/gen

droiddoc took 105 sec. to write docs to out/target/common/docs/online-sdk

package sdk: out/host/linux-x86/sdk/android-sdk_eng.neo_linux-x86.zip

sdk/build/tools.atree:134: couldn't locate source file: framework/ddmlib-tests.jar

sdk/build/tools.atree:135: couldn't locate source file: framework/ninepatch-tests.jar

sdk/build/tools.atree:136: couldn't locate source file: framework/common-tests.jar

sdk/build/tools.atree:138: couldn't locate source file: framework/sdkuilib-tests.jar

make: *** [out/host/linux-x86/sdk/android-sdk_eng.root_linux-x86.zip] error 44

說明在~/android_src/out/host/linux-x86/framework目錄下找不到ddmlib-tests.jar、ninepath-tests.jar、common-tests.jar、sdkuilib-tests.jar這幾個檔案,但在這個目錄下有:common.jar、ddmlib.jar、ninepatch.jar、sdkuilib.jar。解決方法為:将它們分别複制一份,并重命名,加上-tests即可,指令行輸入(略)。

繼續編譯,指令行将會出現以下提示:

droiddoc took 90 sec. to write docs to out/target/common/docs/online-sdk

package sdk: out/host/linux-x86/sdk/android-sdk_eng.jhlu_linux-x86.zip

xxx@xxx:~/android_src$

這說明android sdk編譯成功完成。