Basically, it happens when we use third party libraries.
Proguard doesn't work well with many of the libraries so we need to make changes in proguard file.
For example, to solve out the errors of retrofit library, we need to add these things in proguard file.
-dontwarn retrofit.*
-keep class retrofit.* { ; }
-keepattributes Signature
-keepattributes Exceptions
-keepclasseswithmembers class * {
@retrofit.http. ;
}
0 Comment(s)