记录Android Killer反编译时遇到的异常

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

一、resource spec: 0x01010543

当前 Apktool 使用版本:Android Killer Default APKTOOL
正在反编译 APK,请稍等...
>I: 使用 ShakaApktool 2.0.0-20150914
>I: 正在加载资源列表...
>I: 反编译 AndroidManifest.xml 与资源...
>I: 正在从框架文件加载资源列表: C:\Users\apktool\framework\1.apk
>I: 常规资源列表...
>I: 反编译资源文件...
>I: 反编译 values */* XMLs...
>Exception in thread "main" b.a.a.e: resource spec: 0x01010543
>   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.t.a(Unknown Source)
>   at b.a.d.a.a.u.h(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

下载地址:

https://down.52pojie.cn/Tools/Android_Tools/

如下所示:

记录Android Killer反编译时遇到的异常_第1张图片

二、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\HLQ\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吧~!!!

扎心了。。。

三、Unsupported major.minor version 52.0

错误日志:

当前 Apktool 使用版本:Android Killer Default APKTOOL
正在反编译 APK,请稍等...

>java.lang.UnsupportedClassVersionError: com/rover12421/shaka/cli/Main : Unsupported major.minor version 52.0
>   at java.lang.ClassLoader.defineClass1(Native Method)
>   at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
>   at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
>   at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
>   at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
>   at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
>   at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
>   at java.security.AccessController.doPrivileged(Native Method)
>   at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
>   at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
>   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
>   at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
>   at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
APK 反编译失败,无法继续下一步源码反编译!

问题原因:

JDK版本不兼容,这里需要注明,JDK高版本兼容低版本,而低版本则无法兼容高版本。

修改Android Killer JDK配置,如下图所示:

记录Android Killer反编译时遇到的异常_第2张图片

参考资料

  1. Unsupported major.minor version 52.0解决办法;

你可能感兴趣的:(Reverse,Engineering(逆向,Road),贺贺逆向路)