0
私はwebserviceに接続してデータを取得するためにksoap2バージョン2.4を使用しています。私はアプリケーションをエクスポートするときにProGuardを使用しています。 proguard.thereでエクスポートするときにこのエラーが発生しました。使用しないときは問題ありません。アンドロイド:ProGuardエラー、4つの重複したクラス定義がありました
[2016-04-13 11:41:39 - Agency] Proguard returned with error code 1. See console
[2016-04-13 11:41:39 - Agency] Note: there were 4 duplicate class definitions.
[2016-04-13 11:41:39 - Agency] Warning: library class android.content.res.XmlResourceParser extends or implements program class org.xmlpull.v1.XmlPullParser
[2016-04-13 11:41:39 - Agency] Warning: library class android.content.Intent depends on program class org.xmlpull.v1.XmlPullParser
[2016-04-13 11:41:39 - Agency] Warning: library class android.content.IntentFilter depends on program class org.xmlpull.v1.XmlSerializer
[2016-04-13 11:41:39 - Agency] Warning: library class android.content.IntentFilter depends on program class org.xmlpull.v1.XmlPullParser
[2016-04-13 11:41:39 - Agency] Warning: library class android.content.res.ColorStateList depends on program class org.xmlpull.v1.XmlPullParser
[2016-04-13 11:41:39 - Agency] Warning: library class android.graphics.drawable.BitmapDrawable depends on program class org.xmlpull.v1.XmlPullParser
[2016-04-13 11:41:39 - Agency] Warning: library class android.graphics.drawable.ColorDrawable depends on program class org.xmlpull.v1.XmlPullParser
[2016-04-13 11:41:39 - Agency] Warning: library class android.graphics.drawable.Drawable depends on program class org.xmlpull.v1.XmlPullParser
[2016-04-13 11:41:39 - Agency] Warning: library class android.graphics.drawable.Drawable depends on program class org.xmlpull.v1.XmlPullParser
[2016-04-13 11:41:39 - Agency] Warning: library class android.graphics.drawable.Drawable depends on program class org.xmlpull.v1.XmlPullParser
[2016-04-13 11:41:39 - Agency] Warning: library class android.graphics.drawable.GradientDrawable depends on program class org.xmlpull.v1.XmlPullParser
[2016-04-13 11:41:39 - Agency] Warning: library class android.graphics.drawable.InsetDrawable depends on program class org.xmlpull.v1.XmlPullParser
[2016-04-13 11:41:39 - Agency] Warning: library class android.graphics.drawable.ShapeDrawable depends on program class org.xmlpull.v1.XmlPullParser
[2016-04-13 11:41:39 - Agency] Warning: library class android.graphics.drawable.ShapeDrawable depends on program class org.xmlpull.v1.XmlPullParser
[2016-04-13 11:41:39 - Agency] Warning: library class android.view.LayoutInflater depends on program class org.xmlpull.v1.XmlPullParser
[2016-04-13 11:41:39 - Agency] Warning: library class android.view.LayoutInflater depends on program class org.xmlpull.v1.XmlPullParser
[2016-04-13 11:41:39 - Agency] You should check if you need to specify additional program jars.
[2016-04-13 11:41:39 - Agency] Warning: there were 16 instances of library classes depending on program classes.
[2016-04-13 11:41:39 - Agency] You must avoid such dependencies, since the program classes will
[2016-04-13 11:41:39 - Agency] be processed, while the library classes will remain unchanged.
[2016-04-13 11:41:39 - Agency] java.io.IOException: Please correct the above warnings first.
[2016-04-13 11:41:39 - Agency] at proguard.Initializer.execute(Initializer.java:321)
[2016-04-13 11:41:39 - Agency] at proguard.ProGuard.initialize(ProGuard.java:211)
[2016-04-13 11:41:39 - Agency] at proguard.ProGuard.execute(ProGuard.java:86)
[2016-04-13 11:41:39 - Agency] at proguard.ProGuard.main(ProGuard.java:492)
私はGoogleを検索し、いくつかの解決策を見つけました。しかし、いずれも機能しませんでした。 -dontwarn
を使用すると、私のアプリケーションは閉じられました。-keep class
を使用して同じエラーが発生しました。 私はEclipseを使用しています。 私は何をしなければなりませんか?