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

Handling invalid resources (error: resource 'xxx' has invalid entry name 'xxx'. Invalid character 'xxx'.) #24

Open
Lanchon opened this issue Jun 27, 2019 · 2 comments

Comments

@Lanchon
Copy link
Member

Lanchon commented Jun 27, 2019

UPDATE:

Proper invalid resource support has been implemented in DexPatcher-gradle v2.0.0. The information below is now outdated. Please see the v2 release notes for details.


Invalid resources such as resources with invalid characters in their names (eg: $) can, for the time being, be worked-around as follows:

  1. Add this code section to the project's build.gradle.
  2. Add patched AAPT2 binaries inside an aapt2 directory to the project, as shown here.

The patched AAPT2 binaries come from official Apktool releases and can be downloaded verbatim as artifact dexpatcher-repo.ibotpeaches.apktool:apktool-aapt2 from the DexPatcher repo. (Current version as of this posting comes from Apktool 2.4.0.)

There is a new 'invalid-resources' sample that demonstrates the workaround.

@Lanchon
Copy link
Member Author

Lanchon commented Nov 1, 2019

UPDATE:

Proper invalid resource support has been implemented in DexPatcher-gradle v2.0.0. The information in this issue is no longer current. Please see the v2 release notes for details.

@448975515
Copy link

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

2 participants