Exclude .jar From Compile In Android Studio With Gradle
I currently have something like this in the build.gradle file. dependencies { compile 'com.android.support:support-v4:13.0.+' compile ('com.xxx:xxx-commons:1.+') { } }
Solution 1:
Yes, you can exclude transitive dependencies:
In your case this would be:
dependencies {
compile'com.android.support:support-v4:13.0.+'compile ("com.xxx:xxx-commons:1.+") {
exclude group: 'junit', module: 'junit'
}
}
or
configurations {
all*.exclude group: 'junit', module: 'junit'
}
Post a Comment for "Exclude .jar From Compile In Android Studio With Gradle"