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

复制代码 代码如下:

[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自带的发生了冲突。

时间: 2024-11-02 13:15:57

android4.0混淆XmlPullParser报错原因分析解决_Android的相关文章

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

复制代码 代码如下: [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

Flex读取txt文件中的内容报错原因分析及解决_Flex

Flex读取txt文件中的内容 1.具体错误如下  2.错误原因 读取文件不存在 复制代码 代码如下: var file:File = new File(File.applicationDirectory.nativePath+"/phone.txt"); 3.解决办法 将文件导入进去

android-Android4.0 执行detectLeakedClosableObjects()报错

问题描述 Android4.0 执行detectLeakedClosableObjects()报错 StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder() .detectDiskReads() .detectDiskWrites() .detectNetwork() // or .detectAll() for all detectable problems .penaltyLog() .build()); StrictM

tomcat启动报错这个怎么解决?

问题描述 tomcat启动报错这个怎么解决? 解决方案 tomcat(错误一) 解决启动报错问题一tomcat启动报错tomcat启动报错原因分析及解决 解决方案二: 配置有误?可以重新启动或重新部署tomcat 解决方案三: 换个绿色版的tomcat,重新部署下.

调试-vc++6.0引用list报错,list.h文件中缺少分号,为什么?

问题描述 vc++6.0引用list报错,list.h文件中缺少分号,为什么? //Tree.h #include #include template class Tree{ T*NA; list*HL; int root; int sizeN,sizeC; int maxN; public: Tree(int n = 100):root(-1), sizeN(0), sizeC(0), maxN(n){ NA = new T[n]; HL = new list[n]; } ~Tree(){ d

ava android-不明原因的函数报错,求解决

问题描述 不明原因的函数报错,求解决 public double std(double a[],int b) { double c=0.0; double d=0.0; for(int i=0;i<b;i++) c=c+(a[i]-mean(a,b))*(a[i]-mean(a,b)); d=Math.sqrt(c/b); return(d); } 在最下面的有报错:Syntax-error-insert-to-complete-lass-ody,不过同样结构写的其他几个函数就没问题啊 解决方案

description-关于tomcat 报错原因

问题描述 关于tomcat 报错原因 description The server encountered an internal error () that prevented it from fulfilling this request. exception java.lang.ClassCastException: com.sany.web.session.WebSession cannot be cast to java.lang.String com.sany.web.filter.

代码-vc 6.0 error c2491 报错啊,头大

问题描述 vc 6.0 error c2491 报错啊,头大 简单又奇怪的问题又来了... debug版完全正常:release版报错c2491. definition of dllimport function not allowed. (我是接手的别人的项目,项目工程代码里没有看到有dllimport 或者是其他明显的问题啊). 解决方案 检查一下你Release版本跟Debug版本的工程配置,尤其预编译宏的设置. 应该有宏定义不一致,导致dllexport,dllimport的导入 解决方

app-android代码混淆打包报错

问题描述 android代码混淆打包报错 FAILURE: Build failed with an exception. What went wrong: Execution failed for task ':app:shrinkReleaseMultiDexComponents'. > java.io.IOException: The output jar [/root/.jenkins/jobs/Android-PRD/workspace/app/build/intermediates/