Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Remove jar in certain build type
dependencies {
compile files('libs/xxxx.jar')
}
android.applicationVariants.all { variant ->
if (variant.buildType.name.equals("release")) {
variant.dex.libraries = variant.dex.libraries - files('libs/xxxx.jar')
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment