Search code examples
androidconfigurationproguardobfuscationdecompiling

Proguard not obfuscating in Android Studio


I am trying to export signed apk, obfuscated with proguard. But after process, I can see my code and my class names in decompiler tool. Spent 1 day , but can't 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. Should I specify anything else to enable proguarding ? After decompilation

enter image description here


Solution

  • Change minifyEnabled to true to enable proguard in your build configuration.