android4.0混淆XmlPullParser报错原因分析解决

android4.0混淆XmlPullParser报错原因分析解决,第1张

概述复制代码代码如下:[2013-05-2017:30:52-danielinbiti]Proguardreturnedwitherrorcode1.Seeconsole[2013-05-2017:30:52-danielinbiti]Note:therewere67duplicateclassdefinitions.[2013-05-2017:30:52-danielinbiti]W 复制代码 代码如下:
[2013-05-20 17:30:52 - danIElinbiti] Proguard returned with error code 1. See console
[2013-05-20 17:30:52 - danIElinbiti] Note: there were 67 duplicate class deFinitions.
[2013-05-20 17:30:52 - danIElinbiti] Warning: library class androID.content.res.XmlResourceParser extends or implements program class org.xmlpull.v1.XmlPullParser
[2013-05-20 17:30:52 - danIElinbiti] Warning: library class androID.content.Intent depends on program class org.xmlpull.v1.XmlPullParser
[2013-05-20 17:30:52 - danIElinbiti] Warning: library class androID.content.IntentFilter depends on program class org.xmlpull.v1.XmlSerializer
[2013-05-20 17:30:52 - danIElinbiti] Warning: library class androID.content.IntentFilter depends on program class org.xmlpull.v1.XmlPullParser
[2013-05-20 17:30:52 - danIElinbiti] Warning: library class androID.content.res.colorStateList depends on program class org.xmlpull.v1.XmlPullParser
[2013-05-20 17:30:52 - danIElinbiti] Warning: library class androID.graphics.drawable.BitmapDrawable depends on program class org.xmlpull.v1.XmlPullParser
[2013-05-20 17:30:52 - danIElinbiti] Warning: library class androID.graphics.drawable.Drawable depends on program class org.xmlpull.v1.XmlPullParser
[2013-05-20 17:30:52 - danIElinbiti] Warning: library class androID.graphics.drawable.Drawable depends on program class org.xmlpull.v1.XmlPullParser
[2013-05-20 17:30:52 - danIElinbiti] Warning: library class androID.graphics.drawable.Drawable depends on program class org.xmlpull.v1.XmlPullParser
[2013-05-20 17:30:52 - danIElinbiti] Warning: library class androID.graphics.drawable.ShapeDrawable depends on program class org.xmlpull.v1.XmlPullParser
[2013-05-20 17:30:52 - danIElinbiti] Warning: library class androID.graphics.drawable.ShapeDrawable depends on program class org.xmlpull.v1.XmlPullParser
[2013-05-20 17:30:52 - danIElinbiti] Warning: library class androID.util.Xml depends on program class org.xmlpull.v1.XmlPullParser
[2013-05-20 17:30:52 - danIElinbiti] Warning: library class androID.util.Xml depends on program class org.xmlpull.v1.XmlSerializer
[2013-05-20 17:30:52 - danIElinbiti] Warning: library class androID.util.Xml depends on program class org.xmlpull.v1.XmlPullParser
[2013-05-20 17:30:52 - danIElinbiti] Warning: library class androID.vIEw.LayoutInflater depends on program class org.xmlpull.v1.XmlPullParser
[2013-05-20 17:30:52 - danIElinbiti] Warning: library class androID.vIEw.LayoutInflater depends on program class org.xmlpull.v1.XmlPullParser
[2013-05-20 17:30:52 - danIElinbiti] You should check if you need to specify additional program jars.
[2013-05-20 17:30:52 - danIElinbiti] Warning: there were 16 instances of library classes depending on program classes.
[2013-05-20 17:30:52 - danIElinbiti] You must avoID such dependencIEs,since the program classes will
[2013-05-20 17:30:52 - danIElinbiti] be processed,while the library classes will remain unchanged.
[2013-05-20 17:30:52 - danIElinbiti] java.io.IOException: Please correct the above warnings first.
[2013-05-20 17:30:52 - danIElinbiti] at proguard.Initializer.execute(Initializer.java:321)
[2013-05-20 17:30:52 - danIElinbiti] at proguard.ProGuard.initialize(ProGuard.java:211)
[2013-05-20 17:30:52 - danIElinbiti] at proguard.ProGuard.execute(ProGuard.java:86)
[2013-05-20 17:30:52 - danIElinbiti] at proguard.ProGuard.main(ProGuard.java:492)

今天,用androID4.0在proguard-project.txt中加入
-libraryjars libs/ksoap2-androID-assembly-2.6.0-jar-with-dependencIEs.jar
这句话后,混淆时报上面的错误。
因为项目中用到axis,所以用到了上面的jar。找了找网上资料,有人说加入-ignorewarnings,但这只是打包了,但其实包是用不了的。
于是根据上面错误,自己把ksoap2-androID-assembly-2.6.0-jar-with-dependencIEs.jar中的
org.xmlpull.v1.XmlPullParser
org.xmlpull.v1.XmlSerializer

两个类去掉,混淆通过且能用。
原因:这两个类与androID自带的发生了冲突。 总结

以上是内存溢出为你收集整理的android4.0混淆XmlPullParser报错原因分析解决全部内容,希望文章能够帮你解决android4.0混淆XmlPullParser报错原因分析解决所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1141327.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-31
下一篇 2022-05-31

发表评论

登录后才能评论

评论列表(0条)

保存