How do I disable proguard for building my Android app?

set

 useProguard false

in your app build.gradle

like

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

Have you tried to add the next line to your proguard configuration file (to the beginning of the file) :

-dontobfuscate

?


set this

minifyEnabled false

in your app build.gradle

Like this:

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

    }

Tags:

Android