Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I use it to compile android projects on my mobile-phone? #14

Open
chachako opened this issue Mar 4, 2021 · 7 comments
Open

Can I use it to compile android projects on my mobile-phone? #14

chachako opened this issue Mar 4, 2021 · 7 comments

Comments

@chachako
Copy link

chachako commented Mar 4, 2021

I tried the tools of 9.0, but aapt2 reported an error and lacked some options. The android-gradle version I used was 7.0.0-alpha.

@JonForShort
Copy link
Owner

Hi @rinorz , would you mind sharing the error you encountered?

@chachako
Copy link
Author

chachako commented Mar 5, 2021

@JonForShort Sure,
image

Failed to transform appcompat-1.2.0.aar (androidx.appcompat:appcompat:1.2.0) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.status=release}. > Execution failed for AarResourcesCompilerTransform: /root/.gradle/caches/transforms-3/d538f9cc37ba3fa55586e346f1fe2e51/transformed/appcompat-1.2.0. > Android resource compilation failed /root/.gradle/daemon/6.8.2/aapt2: AAPT: compile [options] -o arg files...

@JonForShort
Copy link
Owner

JonForShort commented Mar 15, 2021

Thanks @rinorz . From the logs, I can't see why it is failing. What is the full command you are passing to "aapt2"? If I have time, I'll try to build "aap2" using Android 12 source code to see if it helps.

@RohitVerma882
Copy link

RohitVerma882 commented May 19, 2021

@JonForShort Sure,
image

Failed to transform appcompat-1.2.0.aar (androidx.appcompat:appcompat:1.2.0) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.status=release}. > Execution failed for AarResourcesCompilerTransform: /root/.gradle/caches/transforms-3/d538f9cc37ba3fa55586e346f1fe2e51/transformed/appcompat-1.2.0. > Android resource compilation failed /root/.gradle/daemon/6.8.2/aapt2: AAPT: compile [options] -o arg files...

@JonForShort Sure,
image

Failed to transform appcompat-1.2.0.aar (androidx.appcompat:appcompat:1.2.0) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.status=release}. > Execution failed for AarResourcesCompilerTransform: /root/.gradle/caches/transforms-3/d538f9cc37ba3fa55586e346f1fe2e51/transformed/appcompat-1.2.0. > Android resource compilation failed /root/.gradle/daemon/6.8.2/aapt2: AAPT: compile [options] -o arg files...

Gradle using Linux aapt2 downloaded from Google maven

@rupeshkumar22
Copy link

@RohitVermaOP You may need to exchange AAPT under .gradle directory according to this - https://github.com/Lzhiyong/termux-ndk/tree/master/build-app
Let me know if it works.

@victorwads
Copy link

Thanks @rinorz . From the logs, I can't see why it is failing. What is the full command you are passing to "aapt2"? If I have time, I'll try to build "aap2" using Android 12 source code to see if it helps.

It WOLD Be SOOO Great!!!

@victorwads
Copy link

@RohitVermaOP You may need to exchange AAPT under .gradle directory according to this - https://github.com/Lzhiyong/termux-ndk/tree/master/build-app Let me know if it works.

The is a MUCH easier way:
using this option on gradle.properties

android.aapt2FromMavenOverride=path/to/your/appt2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants