Apktool: No resource identifier found for attribute 'compileSdkVersion' in package 'android'

Created on 24 Jul 2018  Â·  4Comments  Â·  Source: iBotPeaches/Apktool

Information issue #1842

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

Steps to Reproduce

  1. apktool d then b

Frameworks

If this APK is from an OEM ROM (Samsung, HTC, LG). Please attach framework files
(.apks that live in /system/framework or /system/priv-app)

APK

If this APK can be freely shared, please upload/attach a link to it.
https://play.google.com/store/apps/details?id=com.arlosoft.macrodroid&hl=en_AU
apkpure.com has a copy of an older version 3.26.0 that has the same problem.

Questions to ask before submission

  1. Have you tried apktool d, apktool b without changing anything? Yes
  2. If you are trying to install a modified apk, did you resign it? N/A
  3. Are you using the latest apktool version? Yes

Most helpful comment

I could not replicate this on my local copy (v2.3.4 - dev)

➜  Bug1852 apktool d droid.apk 
I: Using Apktool 2.3.4-92bec5-SNAPSHOT on droid.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: /Users/connortumbleson/Library/apktool/framework/1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Baksmaling classes.dex...
I: Baksmaling classes2.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
➜  Bug1852 apktool b droid
I: Using Apktool 2.3.4-92bec5-SNAPSHOT
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...
I: Copying libs... (/kotlin)
I: Building apk file...
I: Copying unknown files/dir...
I: Built apk...
➜  Bug1852 

Ensure you have the latest framework file using apktool empty-framework-dir. Not sure what happened here with replies back n forth. As long as you put a version number, that works for me. I can tell if the version number is an unreleased dev version or public release.

All 4 comments

@ibuprophen1 no, the latest release is 2.3.3, the latest version is whatever you can compile from source.

In any case it doesn't matter, either version have the same problem.

@ibuprophen1 no, my report was accurate, I was using the latest version. You are not being helpful at all by assuming I made a typo.

That reveals a lot about your mentality, sir.

BTW There's no point of pointing out minor version because it's irrelevant, the only 2.3.4 available is SNAPSHOT, that version name can be from 2 months ago. And as a developer, if you cannot figure out I was using the latest version of a development tool - which I correctly reported. Ah well.

I could not replicate this on my local copy (v2.3.4 - dev)

➜  Bug1852 apktool d droid.apk 
I: Using Apktool 2.3.4-92bec5-SNAPSHOT on droid.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: /Users/connortumbleson/Library/apktool/framework/1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Baksmaling classes.dex...
I: Baksmaling classes2.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
➜  Bug1852 apktool b droid
I: Using Apktool 2.3.4-92bec5-SNAPSHOT
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...
I: Copying libs... (/kotlin)
I: Building apk file...
I: Copying unknown files/dir...
I: Built apk...
➜  Bug1852 

Ensure you have the latest framework file using apktool empty-framework-dir. Not sure what happened here with replies back n forth. As long as you put a version number, that works for me. I can tell if the version number is an unreleased dev version or public release.

i have same issue, and i solve it with apktool empty-framework-dir

Was this page helpful?
0 / 5 - 0 ratings