DexPatcher / dexpatcher-tool

Android Dalvik bytecode patcher.
https://dexpatcher.github.io/
GNU General Public License v3.0
428 stars 79 forks source link

Android resource compilation failed #30

Closed beshoo closed 4 years ago

beshoo commented 4 years ago

Dear all. I am trying to play with Instagram APK to see how it works. 1- I cloned the samples folder. 2- Open the "patched-app" as a project. 3- replace the APK file with the latest Instagram apk file. 4- Click on debug


Android resource compilation failed
C:\Users\DELL\AndroidStudioProjects\patched-app\app\build\intermediates\dexpatcher\decoded-app\res\values\public.xml:6082: error: resource 'drawable/$avd_hide_password__0' has invalid entry name '$avd_hide_password__0'. Invalid character '$avd_hide_password__0'.
C:\Users\DELL\AndroidStudioProjects\patched-app\app\build\intermediates\dexpatcher\decoded-app\res\values\public.xml:6083: error: resource 'drawable/$avd_hide_password__1' has invalid entry name '$avd_hide_password__1'. Invalid character '$avd_hide_password__1'.
C:\Users\DELL\AndroidStudioProjects\patched-app\app\build\intermediates\dexpatcher\decoded-app\res\values\public.xml:6084: error: resource 'drawable/$avd_hide_password__2' has invalid entry name '$avd_hide_password__2'. Invalid character '$avd_hide_password__2'.
C:\Users\DELL\AndroidStudioProjects\patched-app\app\build\intermediates\dexpatcher\decoded-app\res\values\public.xml:6085: error: resource 'drawable/$avd_show_password__0' has invalid entry name '$avd_show_password__0'. Invalid character '$avd_show_password__0'.
C:\Users\DELL\AndroidStudioProjects\patched-app\app\build\intermediates\dexpatcher\decoded-app\res\values\public.xml:6086: error: resource 'drawable/$avd_show_password__1' has invalid entry name '$avd_show_password__1'. Invalid character '$avd_show_password__1'.
C:\Users\DELL\AndroidStudioProjects\patched-app\app\build\intermediates\dexpatcher\decoded-app\res\values\public.xml:6087: error: resource 'drawable/$avd_show_password__2' has invalid entry name '$avd_show_password__2'. Invalid character '$avd_show_password__2'.
C:\Users\DELL\AndroidStudioProjects\patched-app\app\build\intermediates\dexpatcher\decoded-app\res\values\public.xml: error: file failed to compile.

Please Advice

Lanchon commented 4 years ago

this is a dexpatcher-gradle issue, not a dexpatcher-tool issue. this issue is covered in the dexpatcher-gradle release notes. (also in the xda thread and in a dexpatcher-gradle issue.) thanks.