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

An error when saving the APK #21

Closed
muslemomar opened this issue Jun 4, 2020 · 5 comments
Closed

An error when saving the APK #21

muslemomar opened this issue Jun 4, 2020 · 5 comments
Labels
AAPT2 Related to AAPT2 Apktool Related to Apktool Tools Related to third-party tools

Comments

@muslemomar
Copy link

I'm trying to edit alarmy app, but I get this error when I try to save the apk

Error Parsing APK.

W: invalid resource directory name: C:\Users\muslim\AppData\Local\Temp\apk-editor-studio\apk\{b395a8bf-e0a8-4071-99a7-9a54484b1459}\res navigation brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\muslim\AppData\Local\Temp\brut_util_Jar_3807460567675597666.tmp, p, --forced-package-id, 127, --min-sdk-version, 19, --target-sdk-version, 29, --version-code, 42308, --version-name, 4.23.8, --no-version-vectors, -F, C:\Users\muslim\AppData\Local\Temp\APKTOOL1635734550941627566.tmp, -e, C:\Users\muslim\AppData\Local\Temp\APKTOOL8287019898804827416.tmp, -0, arsc, -I, C:\Users\muslim\AppData\Local\apk-editor-studio\frameworks\1.apk, -S, C:\Users\muslim\AppData\Local\Temp\apk-editor-studio\apk\{b395a8bf-e0a8-4071-99a7-9a54484b1459}\res, -M, C:\Users\muslim\AppData\Local\Temp\apk-editor-studio\apk\{b395a8bf-e0a8-4071-99a7-9a54484b1459}\AndroidManifest.xml]

@kefir500
Copy link
Owner

kefir500 commented Jun 5, 2020

Try turning on AAPT2 in Settings -> Options -> Repacking.

@muslemomar
Copy link
Author

Thanks for replying!
AAPT2 solved that issue, but now got a new bigger one :

I: Using Apktool 2.4.1 I: Copying C:\Users\muslim\AppData\Local\Temp\apk-editor-studio\apk\{c806ce54-f7b4-4ffb-bf36-8da97da1447c} classes.dex file... I: Copying C:\Users\muslim\AppData\Local\Temp\apk-editor-studio\apk\{c806ce54-f7b4-4ffb-bf36-8da97da1447c} classes2.dex file... I: Copying C:\Users\muslim\AppData\Local\Temp\apk-editor-studio\apk\{c806ce54-f7b4-4ffb-bf36-8da97da1447c} classes3.dex file... I: Copying C:\Users\muslim\AppData\Local\Temp\apk-editor-studio\apk\{c806ce54-f7b4-4ffb-bf36-8da97da1447c} classes4.dex file... I: Building resources... W: C:\Users\muslim\AppData\Local\Temp\apk-editor-studio\apk\{c806ce54-f7b4-4ffb-bf36-8da97da1447c}\res\values\arrays.xml:540: error: invalid value for type 'array'. Expected a reference. W: C:\Users\muslim\AppData\Local\Temp\apk-editor-studio\apk\{c806ce54-f7b4-4ffb-bf36-8da97da1447c}\res\values\arrays.xml:541: error: invalid value for type 'array'. Expected a reference. W: C:\Users\muslim\AppData\Local\Temp\apk-editor-studio\apk\{c806ce54-f7b4-4ffb-bf36-8da97da1447c}\res\values\arrays.xml:542: error: invalid value for type 'array'. Expected a reference. W: C:\Users\muslim\AppData\Local\Temp\apk-editor-studio\apk\{c806ce54-f7b4-4ffb-bf36-8da97da1447c}\res\values\arrays.xml:543: error: invalid value for type 'array'. Expected a reference. W: C:\Users\muslim\AppData\Local\Temp\apk-editor-studio\apk\{c806ce54-f7b4-4ffb-bf36-8da97da1447c}\res\values\arrays.xml:544: error: invalid value for type 'array'. Expected a reference. W: C:\Users\muslim\AppData\Local\Temp\apk-editor-studio\apk\{c806ce54-f7b4-4ffb-bf36-8da97da1447c}\res\values\arrays.xml:545: error: invalid value for type 'array'. Expected a reference. W: C:\Users\muslim\AppData\Local\Temp\apk-editor-studio\apk\{c806ce54-f7b4-4ffb-bf36-8da97da1447c}\res\values\arrays.xml:546: error: invalid value for type 'array'. Expected a reference. W: C:\Users\muslim\AppData\Local\Temp\apk-editor-studio\apk\{c806ce54-f7b4-4ffb-bf36-8da97da1447c}\res\values\arrays.xml:547: error: invalid value for type 'array'. Expected a reference. W: C:\Users\muslim\AppData\Local\Temp\apk-editor-studio\apk\{c806ce54-f7b4-4ffb-bf36-8da97da1447c}\res\values\arrays.xml: error: file failed to compile. W: C:\Users\muslim\AppData\Local\Temp\apk-editor-studio\apk\{c806ce54-f7b4-4ffb-bf36-8da97da1447c}\res\values\plurals.xml:15: error: invalid value for type 'plurals'. Expected a reference. W: C:\Users\muslim\AppData\Local\Temp\apk-editor-studio\apk\{c806ce54-f7b4-4ffb-bf36-8da97da1447c}\res\values\plurals.xml:16: error: invalid value for type 'plurals'. Expected a reference. W: C:\Users\muslim\AppData\Local\Temp\apk-editor-studio\apk\{c806ce54-f7b4-4ffb-bf36-8da97da1447c}\res\values\plurals.xml:17: error: invalid value for type 'plurals'. Expected a reference. W: C:\Users\muslim\AppData\Local\Temp\apk-editor-studio\apk\{c806ce54-f7b4-4ffb-bf36-8da97da1447c}\res\values\plurals.xml:18: error: invalid value for type 'plurals'. Expected a reference. W: C:\Users\muslim\AppData\Local\Temp\apk-editor-studio\apk\{c806ce54-f7b4-4ffb-bf36-8da97da1447c}\res\values\plurals.xml:19: error: invalid value for type 'plurals'. Expected a reference. W: C:\Users\muslim\AppData\Local\Temp\apk-editor-studio\apk\{c806ce54-f7b4-4ffb-bf36-8da97da1447c}\res\values\plurals.xml: error: file failed to compile. W: C:\Users\muslim\AppData\Local\Temp\apk-editor-studio\apk\{c806ce54-f7b4-4ffb-bf36-8da97da1447c}\res\values\public.xml:2418: error: resource 'drawable/$ic_backupsound_gradient_24_24__0' has invalid entry name '$ic_backupsound_gradient_24_24__0'. Invalid character '$ic_backupsound_gradient_24_24__0'. W: C:\Users\muslim\AppData\Local\Temp\apk-editor-studio\apk\{c806ce54-f7b4-4ffb-bf36-8da97da1447c}\res\values\public.xml:2419: error: resource 'drawable/$ic_ico_purchase_newfeatures_gradient_24_24__0' has invalid entry name '$ic_ico_purchase_newfeatures_gradient_24_24__0'. Invalid character '$ic_ico_purchase_newfeatures_gradient_24_24__0'. W: C:\Users\muslim\AppData\Local\Temp\apk-editor-studio\apk\{c806ce54-f7b4-4ffb-bf36-8da97da1447c}\res\values\public.xml:2420: error: resource 'drawable/$ic_ico_purchase_turnoffads_gradient_24_24__0' has invalid entry name '$ic_ico_purchase_turnoffads_gradient_24_24__0'. Invalid character '$ic_ico_purchase_turnoffads_gradient_24_24__0'. W: C:\Users\muslim\AppData\Local\Temp\apk-editor-studio\apk\{c806ce54-f7b4-4ffb-bf36-8da97da1447c}\res\values\public.xml:2421: error: resource 'drawable/$ic_mission_typing_gradient_24_24__0' has invalid entry name '$ic_mission_typing_gradient_24_24__0'. Invalid character '$ic_mission_typing_gradient_24_24__0'. W: C:\Users\muslim\AppData\Local\Temp\apk-editor-studio\apk\{c806ce54-f7b4-4ffb-bf36-8da97da1447c}\res\values\public.xml:2422: error: resource 'drawable/$ic_mission_walking_gradient_24_24__0' has invalid entry name '$ic_mission_walking_gradient_24_24__0'. Invalid character '$ic_mission_walking_gradient_24_24__0'. brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\muslim\AppData\Local\Temp\brut_util_Jar_8728328140509795327.tmp, compile, --dir, C:\Users\muslim\AppData\Local\Temp\apk-editor-studio\apk\{c806ce54-f7b4-4ffb-bf36-8da97da1447c}\res, --legacy, -o, C:\Users\muslim\AppData\Local\Temp\apk-editor-studio\apk\{c806ce54-f7b4-4ffb-bf36-8da97da1447c}\build\resources.zip]

@kefir500 kefir500 added AAPT2 Related to AAPT2 Apktool Related to Apktool labels Jun 6, 2020
@kefir500
Copy link
Owner

kefir500 commented Jun 6, 2020

Seems that this error message is related directly to Apktool which is used by APK Editor Studio under the hood. Check out this issue for more information.

@muslemomar
Copy link
Author

Yes. I actually tried with apktool and this issue happened. this is why I moved to Apk Editor Studio (didn't know it uses apktool).

@kefir500
Copy link
Owner

kefir500 commented Jun 7, 2020

Sorry to hear that.
Closing this issue and waiting for the Apktool update.
Feel free to reopen if needed.

@kefir500 kefir500 closed this as completed Jun 7, 2020
@kefir500 kefir500 added the Tools Related to third-party tools label Jan 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AAPT2 Related to AAPT2 Apktool Related to Apktool Tools Related to third-party tools
Projects
None yet
Development

No branches or pull requests

2 participants