Problems with Android 6.0 compilation

Source: Internet
Author: User

After running the Make SDK, stuck in the following location

JAVA-CP prebuilts/tools/common/api-generator/api-generator-22.9.2.jar:prebuilts/tools/common/kxml2-tools/ Kxml2-2.3.0.jar:prebuilts/tools/common/asm-tools/asm-4.0.jar:prebuilts/tools/common/asm-tools/asm-tree-4.0.jar :p rebuilts/devtools/tools/lib/common.jar \
Com.android.apigenerator.Main \
--pattern prebuilts/tools/common/api-versions/android-%/android.jar \
--pattern prebuilts/sdk/%/android.jar \
Out/host/linux-x86/development/sdk/generated-api-versions.xml
Found API 1 at Prebuilts/tools/common/api-versions/android-1/android.jar
Found API 2 at Prebuilts/tools/common/api-versions/android-2/android.jar
Found API 3 at Prebuilts/tools/common/api-versions/android-3/android.jar
Found API 4 at Prebuilts/sdk/4/android.jar
Found API 5 at Prebuilts/sdk/5/android.jar
Found API 6 at Prebuilts/sdk/6/android.jar
Found API 7 at Prebuilts/sdk/7/android.jar
Found API 8 at Prebuilts/sdk/8/android.jar
Found API 9 at Prebuilts/sdk/9/android.jar
Found API at Prebuilts/sdk/10/android.jar
Found API at Prebuilts/sdk/11/android.jar
Found API at Prebuilts/sdk/12/android.jar
Found API at Prebuilts/sdk/13/android.jar
Found API at Prebuilts/sdk/14/android.jar
Found API at Prebuilts/sdk/15/android.jar
Found API at Prebuilts/sdk/16/android.jar
Found API at Prebuilts/sdk/17/android.jar
Found API at Prebuilts/sdk/18/android.jar
Found API at Prebuilts/sdk/19/android.jar
Found API at Prebuilts/sdk/20/android.jar
Found API at Prebuilts/sdk/21/android.jar
Found API at Prebuilts/sdk/22/android.jar
Found API at Prebuilts/sdk/23/android.jar

After troubleshooting, the final discovery is that the target SDK relies on the atree_files inside called the android-6.0.0_r11/development/build/android.mk:138 command.

Try to comment out this command, continue to run the prompt as follows

Development/build/sdk.atree:49:couldn ' t locate source File:bin/etc1tool
Development/build/sdk.atree:54:couldn ' t locate source File:development/sdk/generated-api-versions.xml
Development/build/sdk.atree:88:couldn ' t locate source File:bin/split-select
Development/build/sdk.atree:93:couldn ' t locate source File:bin/bcc_compat
Development/build/sdk.atree:186:couldn ' t locate source File:framework/layoutlib.jar
Development/build/sdk.atree:527:couldn ' t locate source File:framework/layoutlib-tests.jar
Development/build/sdk.atree:528:couldn ' t locate source file:system/app/emulatorsmoketests/emulatorsmoketests.apk
Build/core/makefile:1813:recipe for Target ' Out/host/linux-x86/sdk/full/android-sdk_eng.root_linux-x86.zip ' failed
Make: * * * [out/host/linux-x86/sdk/full/android-sdk_eng.root_linux-x86.zip] Error 44

The machine's/bin/etc1tool and/usr/bin/etc1tool are present, back to the sdk.atree to see that refers to the LL out/host/linux-x86/bin/directory, should be referring to the Android system?

Keep trying.

Replace the two api-generator jar packages under Prebuilts/tools/common/api-generator with a normal android-6.0.0_ that can be compiled The R1 version of the jar package (which found that the two versions of the jar package is identical) will still be stuck and it does not appear to be a problem with this jar package. But the input of the three parameters two is the pattern, one is the output result, what can be wrong.

Find the following URL, it seems to be the source code.

Http://www.javatips.net/api/android-gradle-plugin-master/misc/api-generator/src/main/java/com/android/ Apigenerator/main.java

Problems with Android 6.0 compilation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.