Open Lanchon opened 5 years ago
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.
Thank you very much. I will download the link below. https://github.com/DexPatcher/dexpatcher-repo/blob/master/m2/dexpatcher-repo/ibotpeaches/apktool/apktool-aapt2/2.5.0/apktool-aapt2-2.5.0.jar Solved the problem.
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:build.gradle
.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.