编译android7.0 sdk错误解决方法

编译时最后报错:

SDK: warning: including GNU target out/target/product/generic/system/lib/libext2fs.so

SDK: warning: including GNU target out/target/product/generic/system/lib/libiprouteutil.so
SDK: warning: including GNU target out/target/product/generic/system/lib/libmicrohttpd.so
SDK: warning: including GNU target out/target/product/generic/system/lib/libnetlink.so
SDK: warning: including GNU target out/target/product/generic/system/lib/libnl.so
SDK: warning: including GNU target out/target/product/generic/system/lib/libxmlrpc++.so
SDK: warning: including GNU target out/target/product/generic/system/xbin/fio
SDK: warning: including GNU target out/target/product/generic/system/xbin/mmc_utils
development/build/sdk.atree:49: couldn't locate source file: bin/etc1tool
development/build/sdk.atree:83: couldn't locate source file: bin/split-select
development/build/sdk.atree:88: couldn't locate source file: bin/bcc_compat
development/build/sdk.atree:203: couldn't locate source file: framework/layoutlib.jar
development/build/sdk.atree:588: couldn't locate source file: framework/layoutlib-tests.jar
development/build/sdk.atree:589: couldn't locate source file: system/app/EmulatorSmokeTests/EmulatorSmokeTests.apk
ninja: build stopped: subcommand failed.
make: *** [ninja_wrapper] Error 1


注释以上development/build/sdk.atree 中的 49 83 88 203 586 589行的内容   再次make sdk
   编译成功,在相关目录下生成以下的文件:

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


你可能感兴趣的:(Android)