android4.0 XmlPullParserエラーの混同
3942 ワード
[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)
今日はandroid 4.0 proguard-project.txtに追加
-libraryjars libs/ksoap2-android-assembly-2.6.0-jar-with-dependencies.jar
この言葉の後、タイムズ紙の間違いを混同した.
プロジェクトではaxisが使われているので、上のjarが使われています.ネット上の資料を探してみると、-ignorewarningsに加入すると言われていましたが、これは梱包しただけですが、実はバッグは使えません.
そこで上記のエラーに基づいて、自分でksoap 2-android-assembly-2.6.0-jar-with-dependenciesをJArの
org.xmlpull.v1.XmlPullParser
org.xmlpull.v1.XmlSerializer
2つのクラスを削除し、混同して通過し、使用できます.
理由:この2つのクラスはandroidが持っているものと衝突しました.