androidobfuscationproguardaquery

Running ProGuard having AQuery library


I'm trying to configure Proguard, but I can't manage to get it working.

This is the error: enter image description here

I've tried things like:

-keep class com.android.auth.TwitterHandle.** { *; }
-keep class oauth.** { *; }

Without any luck.

Anyways, I don't really think ignoring is the answer. Because that might mean something is broken.

Any tips?

Thanks!


Solution

  • The warnings indicate that the AndroidQuery library depends on the OAuth library. Apparently, you're using the former library in your project, but the latter library is missing. You could add the missing library, but if your application is working fine without it in debug mode, you can just tell ProGuard to ignore the missing dependency. In this case:

    -dontwarn com.androidquery.auth.**
    

    or, to the same effect:

    -dontwarn oauth.signpost.**
    

    See the ProGuard manual > Troubleshooting > Warning: can't find referenced class

    (I am the developer of ProGuard)