Exception in thread ' main ' brut.androlib.AndrdolibException:Counld not decode arse file

Source: Internet
Author: User

Recently encountered a very disgusting problem:

1 Error log:

Exception in thread ' main ' brut.androlib.AndrolibException: **could not decode ARSC file** at Brut.androlib.res.decoder . Arscdecoder.decode (arscdecoder.java:56) at BRUT.ANDROLIB.RES.ANDROLIBRESOURCES.GETRESPACKAGESFROMAPK ( androlibresources.java:491) at brut.androlib.res.AndrolibResources.loadMainPkg (androlibresources.java:74) at Brut.androlib.res.AndrolibResources.getResTable (androlibresources.java:66) at brut.androlib.Androlib.getResTable (androlib.java:50) at brut.androlib.ApkDecoder.getResTable (apkdecoder.java:189) at Brut.androlib.ApkDecoder.decode (apkdecoder.java:114) at Brut.apktool.Main.cmdDecode (main.java:146) at Brut.apktool.Main.main (main.java:77) caused B y:java.io.ioexception:expected:0x001c0001, got:0x00000000 at Brut.util.ExtDataInput.skipCheckInt ( extdatainput.java:48) at Brut.androlib.res.decoder.StringBlock.read (stringblock.java:44) at Brut.androlib.res.decoder.ARSCDecoder.readPackage (arscdecoder.java:102) at Brut.androlib.res.decoDer. Arscdecoder.readtable (arscdecoder.java:83) at Brut.androlib.res.decoder.ARSCDecoder.decode (arscdecoder.java:49)



2 was originally thought to be a apktool.jar problem?

Then the son of StackOverflow on the search for a bit,


So it's MY QUESTION: "What's the building requirements (on Eclypse) to permit a app to being decompiled by Apktool?" I did some tests and couldn ' t find any rules ... For example, I built a empty app (I just created it and exported it the project to an APK file), the building options Wer  E:minimum:api, Android 4.0targeting:api, Android 4.0Compile With:api, Android 4.0And I couldn ' t decompiled The apk ... Anyway, I can ' t decompiled any of my apps! What does I have with the change in the building options? I did my tests on Apktool 1.4.3 and 2.0.0 Also, Proguard isn ' t activated. This link says the It could has problem for building versions upper than 21.1.1, but that's it was a fixed in Apktool 2.0.0. . https://code.google.com/p/android-apktool/issues/detail?id=680

Then I updated the Apktool.jar or not, but found the problem,

The original is because, I use Adbmanager update is after, update the latest version, 5.1.1 API22 original, Eclispe compiled apk , automatically calls the build-tools/22.0.1 below the jar package, may adopt the new encryption scheme, causes the Apktool.jar not to compile,

In the final analysis, the problem is that Apktool.jar is not updated.


Solution:

It is simple to delete 22.0.1 because, after Android, the latest version, only studio, no longer update ADT. So, if you recommend it later, use studio.



Reference URL:

StackOverflow Reference URL





Exception in thread ' main ' brut.androlib.AndrdolibException:Counld not decode arse file

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.