Proguard doesn't get confused in Android Studio

I am trying to export a signed apk, obfuscated with proguard. But after the process, I see the code and class names in the decompiler tool. Spent 1 day, but could not understand what I missed.

In my gradle file, I specified:

    buildTypes {
        release {
            apply plugin: 'maven'
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

proguard-rules.pro is empty. Do I have to specify anything else to enable profiling? After decompilation

enter image description here

+4
source share
1 answer

Change minifyEnabledto trueto enable proguard in your build configuration.

+6
source

All Articles