How to get release build apk file using proguard

Solution 1:

add this:

-dontwarn com.squareup.okhttp.**

to your proguard-rules.pro

Solution 2:

You have to write pro-guard rule for every library else pro-guard will obfuscate it

This is for Admob

 -keep public class com.google.ads.**{
       public *;
    }

This is for V7 support lib

-dontwarn android.support.v7.**
-keep class android.support.v7.** { *; }
-keep interface android.support.v7.** { *; }