反编译apk出现Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec错误
2017-06-25 09:22
1901 查看
$ java -jar ../resources/apktool.jar d -f apk/xxx-person-6.0\(9\)-25.apk -o aaa-o
I: Using Apktool 2.1.0 on mixin-person-6.0(9)-25.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: /Users/zhangjg/Library/apktool/framework/1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x010104e2
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:59)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:66)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:62)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferenceValue.java:57)
at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResReferenceValue.java:47)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlValue(ResScalarValue.java:58)
at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(ResStyleValue.java:72)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:510)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:264)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:128)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:106)
at brut.apktool.Main.cmdDecode(Main.java:163)
at brut.apktool.Main.main(Main.java:81)
仔细查看,有这么一行:I: Loading resource table from file: /Users/xxx/Library/apktool/framework/1.apk
删除该文件,再次运行即可解决
I: Using Apktool 2.1.0 on mixin-person-6.0(9)-25.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: /Users/zhangjg/Library/apktool/framework/1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x010104e2
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:59)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:66)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:62)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferenceValue.java:57)
at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResReferenceValue.java:47)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlValue(ResScalarValue.java:58)
at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(ResStyleValue.java:72)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:510)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:264)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:128)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:106)
at brut.apktool.Main.cmdDecode(Main.java:163)
at brut.apktool.Main.main(Main.java:81)
仔细查看,有这么一行:I: Loading resource table from file: /Users/xxx/Library/apktool/framework/1.apk
删除该文件,再次运行即可解决
相关文章推荐
- 用apktool反编译的时候出错:Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec:
- Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x01030200(转)
- Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x01030200
- apk反编译出错:Exception in thread "main" brut.androlib.AndrolibException: Could not decode ars c file
- exception in thread main brut.androlib.err.undefinedresobject resource spec : 0x01010462
- Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x01030200
- APK Tool的问题:Exception in thread "main" brut.androlib.AndrolibException: Could not decode arsc file
- exception in thread "main" brut.androlib.AndrdolibException: Counld not decode arse file
- exception in thread "main" brut.androlib.AndrdolibException: Counld not decode arse file
- apktool反编译:Exception in thread "main" brut.androlib.AndrolibException: Could not decode arsc file
- APK反编译解决Exception in thread "main" brut.androlib.AndrolibException: Could not decode ars c file问题
- Android反编译时报错Exception in thread "main" brut.androlib.err.UndefinedResObject
- 关于反编译apk出现Exception in thread "main" java.lang.ClassCastException: ....
- Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command
- apktools 工具反编译 :Exception in thread “main” brut.androlib.AndrolibException: Could not decode
- Java 控制台执行带自定义包定义的类,出现“Exception in thread "main" java.lang.NoClassDefFoundError: ConnectSQLServer (wrong name: sine/ConnectSQLServer)”
- 遍历集合时出现的异常Exception in thread "main" java.util.ConcurrentModificationException
- Drools 运行时出现Exception in thread "main" java.lang.RuntimeException: wrong class format 的问题
- 【Java】【FAQ】控制台执行带自定义包定义的类,出现“Exception in thread "main" java.lang.NoClassDefFoundError
- 运行的程序时,出现内存不足时的解决方式Exception in thread "main" java.lang.OutOfMemoryError: Java heap space(转)