Android Killer反编译异常收集解决方案

  • Post author:
  • Post category:其他


使用Android Killer 反编译,出现以下异常:

一、resource spec: 0x01010540

当前 Apktool 使用版本:Android Killer Default APKTOOL
正在反编译 APK,请稍等...
>I: 使用 ShakaApktool 2.0.0-20150914
>I: 正在加载资源列表...
>I: 反编译 AndroidManifest.xml 与资源...
>I: 正在从框架文件加载资源列表: C:\Users\Administrator\apktool\framework\1.apk
>I: 常规资源列表...
>I: 反编译资源文件...
>I: 反编译 values */* XMLs...
>Exception in thread "main" b.a.a.e: resource spec: 0x01010540
>	at b.a.d.a.p.a(Unknown Source)
>	at b.a.d.a.q.a(Unknown Source)
>	at org.c.b.b.c.a(Unknown Source)
>	at com.rover12421.shaka.a.b.p.a(Unknown Source)
>	at b.a.d.a.p.b(Unknown Source)
>	at b.a.d.a.w.a(Unknown Source)
>	at b.a.d.a.w.a(Unknown Source)
>	at b.a.d.a.a.t.d(Unknown Source)
>	at b.a.d.a.a.w.a(Unknown Source)
>	at b.a.d.a.a.w.a(Unknown Source)
>	at b.a.d.a.a(Unknown Source)
>	at b.a.d.a.c(Unknown Source)
>	at b.a.a.b(Unknown Source)
>	at b.a.E.a(Unknown Source)
>	at b.b.a.a(Unknown Source)
>	at b.b.a.a(Unknown Source)
>	at com.rover12421.shaka.cli.Main.main(Unknown Source)
APK 反编译失败,无法继续下一步源码反编译!

问题原因:

由于本地ShakaApkTool版本太低,需要更新一下,另外这里需要注意,需要下载

ShakaApktool.jar

替换原有jar文件

记得把jar名字改回来,否则出现以下错误

二、expected element name ‘style’ and not ‘resources’

当前 Apktool 使用版本:Android Killer Default APKTOOL
正在反编译 APK,请稍等...
>I: 使用 ShakaApktool 3.0.0-20170503
>I: 正在加载资源列表...
>I: 反编译 AndroidManifest.xml 与资源...
>I: 正在从框架文件加载资源列表: C:\Users\Administrator\AppData\Local\apktool\framework\1.apk
>I: 常规资源列表...
>I: 反编译资源文件...
>I: 反编译 values */* XMLs...
>java.lang.NullPointerException
>	at b.a.d.a.a.x.a(Unknown Source)
>	at b.a.d.a.a.x.a(Unknown Source)
>	at b.a.d.a.a(Unknown Source)
>	at b.a.d.a.c(Unknown Source)
>	at b.a.a.b(Unknown Source)
>	at b.a.C.a(Unknown Source)
>	at b.b.a.a(Unknown Source)
>	at b.b.a.a(Unknown Source)
>	at com.rover12421.shaka.cli.Main.main(Unknown Source)
>Exception in thread "main" java.lang.IllegalArgumentException: expected element name 'style' and not 'resources'
>	at org.e.a.a.c(Unknown Source)
>	at b.a.d.a.a(Unknown Source)
>	at b.a.d.a.c(Unknown Source)
>	at b.a.a.b(Unknown Source)
>	at b.a.C.a(Unknown Source)
>	at b.b.a.a(Unknown Source)
>	at b.b.a.a(Unknown Source)
>	at com.rover12421.shaka.cli.Main.main(Unknown Source)
APK 反编译失败,无法继续下一步源码反编译!

出现这个问题是因为Apktool版本太低,下载一个最新的apktool



版权声明:本文为zhangjianming2018原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。