Android Proguard "can't Find Referenced"
I want to generate a signed apk. But I reached the 64k methods limit so I searched for some solutions and one of them is to use proguard. I edited my build.gradle like this: build
Solution 1:
There are two problematic libraries:
The first problem is with the class com.akexorcist.roundcornerprogressbar.TextRoundCornerProgressBar. There is a solution here that overcomes the problem, by adding to Proguard:
-dontwarn com.akexorcist.roundcornerprogressbar.TextRoundCornerProgressBarThe second one is simply solved by adding two statements to Proguard that the author of the library clearly describes here:
-keep class com.github.mikephil.charting.** { *; }-dontwarn io.realm.**Your Proguard file should contain those lines and the problems should disappear.
Solution 2:
buildTypes {
release {
debuggable false
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
debuggable true
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
Post a Comment for "Android Proguard "can't Find Referenced""