1. 程式人生 > >記錄反編譯過程中遇到的問題

記錄反編譯過程中遇到的問題

1.反編譯過程中遇到如下異常:

I: Baksmaling...

I: Loading resource table... Exception in thread "main" brut.androlib.AndrolibException: Could not decode ars c file at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:56) at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibRes ources.java:491) at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.jav a:74) at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.jav a: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 by: 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:10 2) at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:83) at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:49) ... 8 more

產生原因:apktool.jar的版本太低,如果使用高版本不會出現異常。