org.simpleframework.xml.stream.StreamReader
in your code refers to javax.xml.stream.events.XMLEvent
. The latter class is part of the Java runtime (rt.jar
) but not part of the Android runtime (android.jar
), so ProGuard warns that something might be broken. If you're sure that your application works anyway, you can specify
-dontwarn javax.xml.stream.events.**
ProGuard hell?
In my case the root cause was here. Those warnings you can just skip with :
-dontwarn org.simpleframework.xml.stream.**
The original answer is here
This error occurs because the libs you use depend on other libs which are not realy used, but Proguard is looking for them.
Add your -dontwarn lines to your proguard-rules.pro file in your Android project to disable this warnings.
You can find which dependencies you need to add to your proguard-rules.pro in the stacktrace of your error.
You should include this in your Proguard config:
-dontskipnonpubliclibraryclasses
My Magic key that solved my hours of searching: Add this to progruard-android.txt
-dontskipnonpubliclibraryclassmembers
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With