i can't build app when use ProGuard in Android Studio

577 views Asked by At

I am using lasted version of Android Studio, and i have obfuscated my project by ProGuard in Android Studio.

edit content of Build.gradlesuch as this :

buildTypes {
    release {
        minifyEnabled true
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}

but when start the build project, an error like that see error

warning Image : see warning

How can I fix this?

2

There are 2 answers

5
Rashmi S On

I had same issue,try to change minifyEnabled true to minifyEnabled false.

And just refer this enter link description here

0
ikhsanudinhakim On

Simply add -dontwarn com.github.siyamed.shapeimageview to your proguard-rules.pro.