错误信息
-
I: Loading resource table...
-
I: Loaded.
-
I: Decoding AndroidManifest.xml with resources...
-
W: Could not decode attr value, using undecoded value instead: ns=android, name=versionCode, value=0x00000025
-
W: Could not decode attr value, using undecoded value instead: ns=android, name=versionName, value=0x00000018
-
Exception in thread "main" java.lang.NullPointerException
-
at java.io.Writer.write(Writer.java:157)
-
at brut.androlib.res.util.ExtMXSerializer.writeAttributeValue(ExtMXSerializer.java:38)
-
at org.xmlpull.mxp1_serializer.MXSerializer.attribute(MXSerializer.java:673)
-
at org.xmlpull.v1.wrapper.classic.XmlSerializerDelegate.attribute(XmlSerializerDelegate.java:106)
-
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(StaticXmlSerializerWrapper.java:267)
-
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(StaticXmlSerializerWrapper.java:211)
-
at brut.androlib.res.decoder.XmlPullStreamDecoder$1.event(XmlPullStreamDecoder.java:80)
-
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:130)
-
at brut.androlib.res.decoder.XmlPullStreamDecoder.decodeManifest(XmlPullStreamDecoder.java:144)
-
at brut.androlib.res.decoder.ResFileDecoder.decodeManifest(ResFileDecoder.java:131)
-
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:218)
-
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:115)
-
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:114)
-
at brut.apktool.Main.cmdDecode(Main.java:146)
-
at brut.apktool.Main.main(Main.java:77)
解决办法参考
http://chenxuebinbj.blog.163.com/blog/static/428691512013119104348451
找到大致问题但是看得不太明白,我指定了user.home但是还是报错
看源代码修改
看来是创建文件夹失败
在需要反编译的apk目录里新建一个目录,并用java -Duser.home=这个tmp目录,问题解决
阅读(1757) | 评论(0) | 转发(0) |