proguard hell - can't find referenced class proguard hell - can't find referenced class android android

proguard hell - can't find referenced class


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.

enter image description here

You can find which dependencies you need to add to your proguard-rules.pro in the stacktrace of your error.