0

enter image description here

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

I have enabled minifyEnabled, but it is not allowing me to generate signed apk. Error:Execution failed for task ':app:transformClassesAndResourcesWithProguardForRelease'.

Job failed, see logs for details It is throwing such error while generating signed apk. I have also mentioned

-ignorewarnings
-keep class * {
    public private *;
}

in proGuard rules.

Shivam Kumar
  • 1,892
  • 2
  • 21
  • 33
Pooja Pachchigar
  • 217
  • 1
  • 3
  • 12

1 Answers1

0

Change this -:

minifyEnabled true

To-:

minifyEnabled false

It will definately work.

Shivam Oberoi
  • 1,447
  • 1
  • 9
  • 18