Apktool
Apktool copied to clipboard
[BUG] No resource identifier found for attribute
trafficstars
Information
- Apktool Version (
apktool -version) - 2.6.1 - Operating System (Mac, Linux, Windows) - Windows
- APK From? (Playstore, ROM, Other) - FDroid
Steps to Reproduce
$ apktool d com.cliambrown.easynoise_7.apk
I: Using Apktool 2.6.1 on com.cliambrown.easynoise_7.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Michael\AppData\Local\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Baksmaling classes.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
$ apktool b
I: Using Apktool 2.6.1
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
W: E:\Work\android\instrumentation\com.cliambrown.easynoise_7\.\res\xml-v22\easy_noise_widget_info.xml:2: error: No resource identifier found for attribute 'previewLayout' in package 'android'
W:
W: E:\Work\android\instrumentation\com.cliambrown.easynoise_7\.\res\xml-v22\easy_noise_widget_info.xml:2: error: No resource identifier found for attribute 'targetCellWidth' in package 'android'
W:
W: E:\Work\android\instrumentation\com.cliambrown.easynoise_7\.\res\xml-v22\easy_noise_widget_info.xml:2: error: No resource identifier found for attribute 'targetCellHeight' in package 'android'
W:
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\Michael\AppData\Local\Temp\brut_util_Jar_173397343242570009203058888801170233046.tmp, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 31, --version-code, 7, --version-name, 0.7, --no-version-vectors, -F, C:\Users\Michael\AppData\Local\Temp\APKTOOL13143174370768677415.tmp, -e, C:\Users\Michael\AppData\Local\Temp\APKTOOL13959606649210838626.tmp, -0, arsc, -I, C:\Users\Michael\AppData\Local\apktool\framework\1.apk, -S, E:\Work\android\instrumentation\com.cliambrown.easynoise_7\.\res, -M, E:\Work\android\instrumentation\com.cliambrown.easynoise_7\.\AndroidManifest.xml]
APK
https://f-droid.org/repo/com.cliambrown.easynoise_7.apk
Questions to ask before submission
- Have you tried
apktool d,apktool bwithout changing anything? YES - If you are trying to install a modified apk, did you resign it? YES
- Are you using the latest apktool version? YES
I also tried the latest apktool version (current master), but it leads to the same result. It seems to be related to issue #2712. Is it because the target SDK version is 31?
Those are new attributes in Android 12, but I already updated to latest Android 12 resources. So not sure right now.
Will hold ticket to double check I have latest SDK resources.
Sorry for delay. Upcoming release has this resolved, which I assume was from a framework update.
➜ 2827 apktool d com.cliambrown.easynoise_7.apk -s -f
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
I: Using Apktool 2.7.1-7a22af-SNAPSHOT on com.cliambrown.easynoise_7.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: /home/ibotpeaches/.local/share/apktool/framework/1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Copying raw classes.dex file...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
➜ 2827 apktool b com.cliambrown.easynoise_7 --use-aapt2
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
I: Using Apktool 2.7.1-7a22af-SNAPSHOT
I: Copying com.cliambrown.easynoise_7 classes.dex file...
I: Checking whether resources has changed...
I: Building resources...
I: Copying libs... (/kotlin)
I: Building apk file...
I: Copying unknown files/dir...
I: Built apk into: com.cliambrown.easynoise_7/dist/com.cliambrown.easynoise_7.apk
➜ 2827