Anyone had better luck with this?
I tried keeping Gson classes as well as AsyncTask. I even tried keeping all java classes (java.**, javax.**, com.sun.**) but I continue to run into this error. The only way to get rid of the error is to use -dontobfuscate.
Here is how I turned off obfuscation for the classes:
-keep class com.google.gson.** { *; }
-keepclassmembers class * extends android.os.AsyncTask {
protected void onPreExecute();
protected *** doInBackground(...);
protected void onPostExecute(...);
}
-keep public class * implements java.lang.reflect.Type
-keep class java.**,javax.**,com.sun.**,android.** {
static final % *;
static final java.lang.String *;
*;
}