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

[BUG] AAPT2 fails with --no-proguard-location-reference #33

Open
Unbrick opened this issue Oct 23, 2020 · 1 comment
Open

[BUG] AAPT2 fails with --no-proguard-location-reference #33

Unbrick opened this issue Oct 23, 2020 · 1 comment

Comments

@Unbrick
Copy link

Unbrick commented Oct 23, 2020

Hey there!

I'm currently trying to patch a application which has ressource issues. I therefore used your sample-project for broken ressources but i'm running in the following error while rebuilding ressources with aapt2 (the one bundeled with apktool 2.4.1):

AAPT: unknown option '--no-proguard-location-reference'.


aapt2 link [options] -o arg --manifest arg files...

... [aapt2 help is shown]

I'm currently running on

  • Gradle 4.0.2
  • Dexpatcher-Gradle 2.1.3
  • Dexpatcher 1.8.0-beta1
  • Apktool 2.4.1

I read though quite a lot of release notes and issues on your repositories but could not find a working solution. Trying to add android.enableJvmResourceCompiler=true to the gradle.properties resulted in a java.lang.IllegalStateException: TODO

Thank you in advance!

Edit: Tried out switching versions of apktool (from 2.3.4 - 2.4.2), aapt2 and so on. No success there. Also tried to switch to the applib-sample, there dex2jar throws a error as it is not capable of converting the dex file.

@Unbrick
Copy link
Author

Unbrick commented Oct 24, 2020

Update: I got it to work using the patched-dex sample. As dex2jar was throwing an error, i disabled it using the key

dexpatcherConfig.dex2jar {
    handleExceptions = true
}

which translates to the command line switch --not-handle-exception. Seems like this variable has the wrong initial value.

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

1 participant