I need to enable Proguard in my app. When I'm enabling it i.e. for debugging like this-
debug {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
I'm getting following error-
Error:Execution failed for task ':app:transformClassesAndResourcesWithProguardForDebug'. > Job failed, see logs for details
I know there are so many questions asked for this but no solution was able to solve my problem.
The problem is not in the definition of proguard rules because if I comment whole "proguard-rules.pro" file, then also getting this error.
There are two more module projects in my application.
I'm using following gradle plugin-
'com.android.tools.build:gradle:3.0.0'
and gradle wrapper-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
I have added -dontwarn
for all libraries but I have jinLibs also. What should I do in proguard for jin libs?
What could be the reason for it? If anyone needs more information then you can ask.