20

I am tring to decompile an APK with AKP-Studio (it uses Apktool 2.0.0-Beta9) but on every APK I get this error:

May 05, 2015 5:38:30 PM brut.androlib.ApkDecoder decode

INFO: Using Apktool 2.0.0-Beta9 on com.****-1.apk

May 05, 2015 5:38:30 PM brut.androlib.res.AndrolibResources loadMainPkg

INFO: Loading resource table...

Exception in thread "main" brut.androlib.AndrolibException: Could not decode arsc file

at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:54)

at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:604)

at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:74)

I checked it on different systems with different versions of windows (64 and 32 bit)

My java version is: "1.8.0_45"

Please let me know if have any solution for this.

MscEliot
  • 551
  • 1
  • 4
  • 11
  • I know it is now an "answer" but it is a solution: https://code.google.com/p/androguard/ worked great for me everytime. – shkschneider May 05 '15 at 13:21

6 Answers6

54

You must have to download apktoo_2.0.0rc file. then after You can decompile your apk file and will not get arcs file error.

You can download latest file version from Here

Now Rename your "apktool_2.0.0rc4.jar" to "apktool.jar".

Now delete old "apktool.jar" file from your apktool folder.

UPDATE:
__

For Windows users, it's located in:

C:\Users\yourusername\.apkstudio\vendor 

__

Now put this new "apktool.jar" file in your apktool folder where old "apktool.jar" was placed.

now same run your cmd commands like apktool if framework-res.apk

and next

apktool d "your appname.apk without quotes"

and keep smile..

Dr.jacky
  • 3,341
  • 6
  • 53
  • 91
hardwork
  • 781
  • 7
  • 14
  • I have an apk that works fine, then I changed some apache libs that relate to HttpClient and some code to modify headers and now I get this "Could not decode arsc file" ?? Anything else that works? Seems like these are related to the githug issues: https://github.com/iBotPeaches/Apktool/issues/924 and https://github.com/iBotPeaches/Apktool/issues/964 – whyoz Oct 13 '15 at 18:06
  • also I'm not able to run those commands? Where is your root to be able to see framework-res.apk? – whyoz Oct 13 '15 at 18:43
1

For me, 2.0.0 versions had same issue, but 2.0.3 solves the problem.

Download newest apktool.jar version at https://bitbucket.org/iBotPeaches/apktool/downloads (apktool owner's repository)

Youngjae
  • 24,352
  • 18
  • 113
  • 198
0

I got the same problem with version 2.0.0. I updated to version 2.1.1 and the problem disappeared.

user3869992
  • 31
  • 1
  • 5
0

I can solve this problem 1. Download framework-res.apk from https://basketbuild.com/filedl/devs?dev=aniruddhc&dl=aniruddhc/framework-res.apk 2. You can download latest file version apktool from https://bitbucket.org/iBotPeaches/apktool/downloads and change name to "apktool.jar". 3. Open folder Framework,delete old file "apktool.jar",later copy new file "apktool.jar" and file framework.res.apk. Later run file Command Prompt and run command "apktool if framework-res.apk". 4. Delete old file "apktool.jar" and copy new file "apktool.jar" in folder APKTool. 5. End, run command apktool d name_apk

Smile !

Chepech
  • 5,258
  • 4
  • 47
  • 70
0

Try the latest apktool.jar

Download link https://bitbucket.org/iBotPeaches/apktool/downloads/apktool_2.2.2.jar

Kavin Varnan
  • 1,989
  • 18
  • 23
0

(2021)I had the same problem. For me moving the apktool folder from windows to desktop was the solution :)

  • 1
    As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Nov 05 '21 at 15:12