-
Notifications
You must be signed in to change notification settings - Fork 139
error: failed linking file resources #50
Description
Prerequisites
- This is not a support issue or a question. For support, questions, or help, see support links.
- I performed a cursory search of the issue tracker on APK Tool GUI to avoid opening a duplicate issue
- I am running the latest version of APK Tool GUI.
- I have read the FAQ
Describe the bug
I'm trying to decompile a xapk app to apk to insatall it on WSA. When trying to compile to apk file I get this error
error: resource android:style/TextAppearance.Material.Notification.Reply is private W: error: failed linking file resources
Not sure if the issue with the new version of the app or something else. The decompling and compiling works with previous versions of the app with no issue
The app is a xapk file. App link
To Reproduce
decompile the xapk app and them try to compile the app to apk
Logs
[15.47.23] =====[ Build ]=====
[15.47.23] Input file: C:\Users\USER\Downloads\BTP_ASTraM_184.0
[15.47.23] Using Apktool 3.0.1 on dec.apk with 8 threads
[15.47.23] Smaling smali_classes2 folder into classes2.dex...
[15.47.23] Smaling smali folder into classes.dex...
[15.47.23] Smaling smali_classes5 folder into classes5.dex...
[15.47.23] Smaling smali_classes3 folder into classes3.dex...
[15.47.23] Smaling smali_classes4 folder into classes4.dex...
[15.47.23] Smaling smali_classes6 folder into classes6.dex...
[15.47.23] Smaling smali_classes7 folder into classes7.dex...
[15.47.24] Building resources with aapt2...
[15.47.36] C:\Users\USER\Downloads\BTP_ASTraM_184.0\res\layout\number_picker_material.xml:2: error: resource android:style/TextAppearance.Material.NumberPicker is private.
[15.47.36] error: failed linking file resources.
[15.47.36] Exception in thread "main" brut.androlib.exceptions.AndrolibException: brut.common.BrutException: Execution failed (exit code = 1): [C:\Users\USER1\AppData\Local\Temp\aapt2_74729110678605794591131199273655496964.tmp, link, -o, C:\Users\USER1\AppData\Local\Temp\APKTOOL14254302020985950409.tmp, --manifest, C:\Users\USER\Downloads\BTP_ASTraM_184.0\AndroidManifest.xml, --min-sdk-version, 24, --target-sdk-version, 36, --version-code, 184, --version-name, 184.0, --no-auto-version, --no-version-vectors, --no-version-transitions, --no-resource-deduping, --no-compile-sdk-metadata, --warn-manifest-validation, -I, C:\Users\USER\AppData\Local\APKToolGUI\framework\1.apk, C:\Users\USER\Downloads\BTP_ASTraM_184.0\build\resources.zip]
[15.47.36] at brut.androlib.res.AaptInvoker.invoke(SourceFile:185)
[15.47.36] at brut.androlib.ApkBuilder.buildResources(SourceFile:357)
[15.47.36] at brut.apktool.Main.main(SourceFile:92)
[15.47.36] Caused by: brut.common.BrutException: Execution failed (exit code = 1): [C:\Users\USER1\AppData\Local\Temp\aapt2_74729110678605794591131199273655496964.tmp, link, -o, C:\Users\USER1\AppData\Local\Temp\APKTOOL14254302020985950409.tmp, --manifest, C:\Users\USER\Downloads\BTP_ASTraM_184.0\AndroidManifest.xml, --min-sdk-version, 24, --target-sdk-version, 36, --version-code, 184, --version-name, 184.0, --no-auto-version, --no-version-vectors, --no-version-transitions, --no-resource-deduping, --no-compile-sdk-metadata, --warn-manifest-validation, -I, C:\Users\USER\AppData\Local\APKToolGUI\framework\1.apk, C:\Users\USER\Downloads\BTP_ASTraM_184.0\build\resources.zip]
[15.47.36] at brut.util.OS.exec(SourceFile:147)
[15.47.36] at brut.androlib.res.AaptInvoker.invoke(SourceFile:182)
[15.47.36] ... 2 more
[15.47.36] =====[ Error ]=====
[15.47.36] Compiling failed
[15.47.36] Time started: 15.47.23
[15.47.36] Time elapsed: 00:12
APK
https://apkpure.com/btp-astram/com.BTPASTraM
APK Tool GUI version
3.3.2.1
Apktool version
3.0.1
Java version
8
Operating system and version
Windows 11 25H2