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

locales_config.xml:3: error: Error parsing XML: unbound prefix #92

Open
anki-code opened this issue Feb 17, 2022 · 5 comments
Open

locales_config.xml:3: error: Error parsing XML: unbound prefix #92

anki-code opened this issue Feb 17, 2022 · 5 comments

Comments

@anki-code
Copy link

Hi!
I've got the error:

I: Using Apktool 2.6.0
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes2 folder into classes2.dex...
I: Checking whether resources has changed...
I: Building resources...
W: /tmp/apk-mitm-b447b9303a25bf6b3ef7bc6223531604/base-apk/decode/res/xml/locales_config.xml:3: error: unbound pre
fix.
W: /tmp/apk-mitm-b447b9303a25bf6b3ef7bc6223531604/base-apk/decode/res/xml/locales_config.xml: error: file failed t
o compile.
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/tmp/brut_util_Jar_16
4211268516868455704548094665375130847.tmp, compile, --dir, /tmp/apk-mitm-b447b9303a25bf6b3ef7bc6223531604/base-apk
/decode/res, --legacy, -o, /tmp/apk-mitm-b447b9303a25bf6b3ef7bc6223531604/base-apk/decode/build/resources.zip]

How I can fix this?

Thanks!

@moikeygraham
Copy link

Looks like this is a specific bug in apk-tool & APK bundles: iBotPeaches/Apktool#2756

@haocse
Copy link

haocse commented Mar 29, 2022

Does anyone know how to bypass this issue manually?

@PratikBodawala
Copy link

try this,
#93 (comment)

@spiffytech
Copy link

#93 (comment)

This was a good start. I also had to remove the locales_config entry from decode/res/values/public.xml, and I deleted decode/res/xml/locales_config.xml just in case.

@Lazza
Copy link

Lazza commented Sep 7, 2023

Use the latest version of apktool

I suggest you download the latest version of apktool and set the correct JAR path, e.g.:

apk-mitm myfile.xapk --apktool /home/[...]/apktool_2.8.1.jar       # Linux
apk-mitm myfile.xapk --apktool C:\Users\[...]\apktool_2.8.1.jar    # Windows

Please note: the path must be absolute, not relative.

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

6 participants