I recently upgraded my Android Studio to version 2.3 with the corresponding gradle version.
I have two modules inside my project, which i exported as a jar using gradle functions like this:
task createJar(type: Copy) {
from('build/intermediates/bundles/release/')
into('libs/')
include('classes.jar')
rename('classes.jar', 'myExample.jar')
}
createJar.dependsOn(deleteJar, build)
However after the upgrade, this does not work anymore. In Android Studio i set the Build Variant to "Release", but after running my tasks there will be no JAR in my lib folder. I checked the
build/intermediates/bundles/
folder and theres no release folder generated. There will be just adefault
and adebug
folder.Any way to get an external JAR from a release build again?