android4.0 혼동 XmlPullParser 오류

3963 단어 Android4.0
[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가 자체적으로 가지고 있는 충돌이 발생했습니다.

좋은 웹페이지 즐겨찾기