I'm having a bit of trouble on an Android project using Proguard with some libraries. Specifically, i'm having an XmlPullParser collision, and no matter what i seem to do, i can't seem to solve it. Here are the libraries I am using:.
There is a post specifically about this at "Conversion to Dalvik format failed with error 1" on external JAR , which pointed me in the direction of having a duplicate XmlPullParser class. Shrinking also seems to fail. As a point of reference, i've tried to reference my libraries two ways, the first is using injars:. Anyone have any idea of what's going on here or how i solve it? The thing is, that would explain the optimization error, but not the obfuscation error.
Your ProGuard configuration and build process seem to be mixing up program jars and library jars. For ProGuard, you can probably specify all the listed jars as input jars with -injars. Their processed versions will end up in the output jar -outjars. You can indeed avoid warnings about duplicate xmlpull classes by filtering them out of android.
ProGuard will also print out warnings should there be any duplicates in the input jars. You can then filter out those duplicates as well. Some of the listed jars depend on it though, so at least parts of them are not entirely compatible with the Android runtime.
The cleanest solution to avoid warnings about offending classes is to filter them out of the corresponding input jars e. Alternatively, you can bluntly switch off these warnings e.
For the Dalvik compiler, you should only specify the processed output jar, not any of the program jars that went into it. Otherwise, you will get duplicate classes: some unprocessed copies and some partly obfuscated copies.
My project allows both to be dependencies without marking either of them as excluded due to conflict. Notice how both projects have the same description. It doesn't include other classes like XmlPullParserFactory etc If it had a dependency on XPP3 it sure would have a classloading issue. How are we doing? Please help us improve Stack Overflow. Take our short survey. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams?
Collectives on Stack Overflow. Version: 3. License: Apache License 2. Version: 1. Organization 6ce — Project Manager, Despot, Developer bob mcwhirter org. Organization 10d78b25 — Founder James Strachan org. Organization 2d — Founder Joe Walnes org. Organization 79b77ebd — Developer Emeritus Chris Stevenson org.
Organization cac2a — Developer Emeritus Matt Foemmel org. Organization a — Developer Emeritus Steve Goetze org. Organization cd8 — Developer Emeritus Bing Ran org. Organization 6a2b72d8 — Developer Emeritus Jeremy Rayner org. Organization 5c — Developer Emeritus Dierk Koenig org.
In addition, many people have reviewed them as elegant. Description: The JGoodies Forms framework helps you lay out and implement elegant Swing panels quickly and consistently. It makes simple things easy and the hard stuff possible, the good design easy and the bad difficult. Project License: BSD style.
Project License: Public Domain. Project License: Indiana University Extreme! Lab Software License, vesion 1. Project License: Eclipse Public License 1. Description: This is the core API of hamcrest matcher framework to be used by third-party framework providers. This includes the a foundation set of matcher implementations for common operations.
0コメント