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即可,命令行输入(略)。

继续编译,命令行将会出现以下提示:
Docs droiddoc: out/target/common/docs/online-sdk
htmlDir not a directory: out/target/common/docs/gen
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编译成功完成。

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wwgpfx.html