简体   繁体   中英

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

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

edit content of Build.gradle such as this :

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

but when start the build project, an error like that 看到错误

warning Image : 看到警告

How can I fix this?

只需将-dontwarn com.github.siyamed.shapeimageview添加到您的proguard-rules.pro。

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

And just refer this enter link description here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM