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

[BUG] "error: attribute android:localeConfig not found" when recompiling. #2807

Closed
kynex7510 opened this issue May 1, 2022 · 1 comment
Closed

Comments

@kynex7510
Copy link

Information

  1. Apktool Version (apktool -version) - 2.6.1
  2. Operating System (Mac, Linux, Windows) - Linux Mint
  3. APK From? (Playstore, ROM, Other) - Playstore

Stacktrace/Logcat

I: Using Apktool 2.6.1
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes5 folder into classes5.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes2 folder into classes2.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes3 folder into classes3.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes4 folder into classes4.dex...
I: Checking whether resources has changed...
I: Building resources...
W: /home/[redacted]/Desktop/spotify/Spotify_base/AndroidManifest.xml:89: error: attribute android:localeConfig not found.
W: error: failed processing manifest.
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/tmp/brut_util_Jar_170138656691227543595256339770135569835.tmp, link, -o, /tmp/APKTOOL3229516847745703260.tmp, --package-id, 127, --min-sdk-version, 21, --target-sdk-version, 31, --version-code, 85991009, --version-name, 8.7.24.1111, --no-auto-version, --no-version-vectors, --no-version-transitions, --no-resource-deduping, -e, /tmp/APKTOOL17871047753407337594.tmp, -0, arsc, -I, /home/[redacted]/.local/share/apktool/framework/1.apk, --manifest, /home/[redacted]/Desktop/spotify/Spotify_base/AndroidManifest.xml, /home/[redacted]/Desktop/spotify/Spotify_base/build/resources.zip]

Steps to Reproduce

  1. apktool b Spotify_base --use-aapt2

APK

Playstore (8.7.24.1111)

@kynex7510
Copy link
Author

Fixed by manually editing the locales_config.xml file, changing

<locale nX:name="TAG" xmlns:X="http://schemas.android.com/apk/res/android" />

to

<locale android:name="TAG" />

which causes #2756 . The provided workaround seems to produce an invalid APK.

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

1 participant