In your Gradle file’s default configuration closure, specify your Proguard file with consumerProguardFiles
instead of proguardFiles
. For example:
defaultConfig {
consumerProguardFiles 'proguard.txt'
}
More Related Contents:
- DexIndexOverflowException Only When Running Tests
- Adding local .aar files to my gradle build
- How to change the proguard mapping file name in gradle for Android project
- Gradle failed to build when proguard is activated
- can’t generate signed APK from Android studio “Execution failed for task ‘:packageRelease'”
- Manually adding aar with dependency pom/iml file
- How to update gradle in android studio?
- Automatically accept all SDK licences
- Android- Error:Execution failed for task ‘:app:transformClassesWithDexForRelease’
- Failed to resolve: com.android.support:appcompat-v7:26.0.0
- Android Studio 0.4 Duplicate files copied in APK META-INF/LICENSE.txt
- Transitive dependencies for local aar library
- How to define different dependencies for different product flavors
- Transitive dependencies not resolved for aar library using gradle
- Android Studio fails to debug with error org.gradle.process.internal.ExecException
- How to build an android library with Android Studio and gradle?
- proguard hell – can’t find referenced class
- How to include JAR dependency into an AAR library
- Is proguard.cfg needed for library projects?
- How to add -Xlint:unchecked to my Android Gradle based project?
- How to set different applicationId for each flavor combination using flavorDimensions?
- no cached version available for offline mode
- Gradle Duplicate Entry: java.util.zip.ZipException
- Error:Unable to resolve dependency for ‘:app@debugAndroidTest/compileClasspath’: Could not resolve junit:junit:4.12
- Google Drive API doesn’t play well with ProGuard (NPE)
- How to include a library module dependency in an Android Studio project?
- Android Studio – Error:Program type already present
- How to build a ‘release’ APK in Android Studio?
- How to add apache commons collections in Android Studio (Gradle)
- Use an aar library cause missing dependencies using api in Gradle 4.x