Error Cause Analysis and Solution for android4.0 obfuscation of XmlPullParser

Source: Internet
Author: User

Copy codeThe code is as follows: [17:30:52-danielinbiti] Proguard returned with error code 1. See console
[17:30:52-danielinbiti] Note: there were 67 duplicate class definitions.
[17:30:52-danielinbiti] Warning: library class android. content. res. XmlResourceParser extends or implements program class org. xmlpull. v1.XmlPullParser
[17:30:52-danielinbiti] Warning: library class android. content. Intent depends on program class org. xmlpull. v1.XmlPullParser
[17:30:52-danielinbiti] Warning: library class android. content. IntentFilter depends on program class org. xmlpull. v1.XmlSerializer
[17:30:52-danielinbiti] Warning: library class android. content. IntentFilter depends on program class org. xmlpull. v1.XmlPullParser
[17:30:52-danielinbiti] Warning: library class android. content. res. ColorStateList depends on program class org. xmlpull. v1.XmlPullParser
[17:30:52-danielinbiti] Warning: library class android. graphics. drawable. BitmapDrawable depends on program class org. xmlpull. v1.XmlPullParser
[17:30:52-danielinbiti] Warning: library class android. graphics. drawable. Drawable depends on program class org. xmlpull. v1.XmlPullParser
[17:30:52-danielinbiti] Warning: library class android. graphics. drawable. Drawable depends on program class org. xmlpull. v1.XmlPullParser
[17:30:52-danielinbiti] Warning: library class android. graphics. drawable. Drawable depends on program class org. xmlpull. v1.XmlPullParser
[17:30:52-danielinbiti] Warning: library class android. graphics. drawable. ShapeDrawable depends on program class org. xmlpull. v1.XmlPullParser
[17:30:52-danielinbiti] Warning: library class android. graphics. drawable. ShapeDrawable depends on program class org. xmlpull. v1.XmlPullParser
[17:30:52-danielinbiti] Warning: library class android. util. Xml depends on program class org. xmlpull. v1.XmlPullParser
[17:30:52-danielinbiti] Warning: library class android. util. Xml depends on program class org. xmlpull. v1.XmlSerializer
[17:30:52-danielinbiti] Warning: library class android. util. Xml depends on program class org. xmlpull. v1.XmlPullParser
[17:30:52-danielinbiti] Warning: library class android. view. LayoutInflater depends on program class org. xmlpull. v1.XmlPullParser
[17:30:52-danielinbiti] Warning: library class android. view. LayoutInflater depends on program class org. xmlpull. v1.XmlPullParser
[17:30:52-danielinbiti] You shoshould check if you need to specify additional program jars.
[17:30:52-danielinbiti] Warning: there were 16 instances of library classes depending on program classes.
[17:30:52-danielinbiti] You must avoid such dependencies, since the program classes will
[17:30:52-danielinbiti] be processed, while the library classes will remain unchanged.
[17:30:52-danielinbiti] java. io. IOException: Please correct the above warnings first.
[17:30:52-danielinbiti] at proguard.Initializer.exe cute (Initializer. java: 321)
[17:30:52-danielinbiti] at proguard. ProGuard. initialize (ProGuard. java: 211)
[17:30:52-danielinbiti] at proguard.ProGuard.exe cute (ProGuard. java: 86)
[17:30:52-danielinbiti] at proguard. ProGuard. main (ProGuard. java: 492)

Add android4.0to proguard-project.txt today
-Libraryjars libs/ksoap2-android-assembly-2.6.0-jar-with-dependencies.jar
After this sentence, the above error is reported during obfuscation.
Because axis is used in the project, the jar above is used. I found some online materials and someone said I joined ignorewarnings. But this is just a package, but it is actually useless.
So according to the above error, I put the ksoap2-android-assembly-2.6.0-jar-with-dependencies.jar in
Org. xmlpull. v1.XmlPullParser
Org. xmlpull. v1.XmlSerializer

Remove the two classes and use them together.
Cause: These two classes conflict with those of android.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.