I recently upgraded my version of Android Studio to version 2.3 using the corresponding version of gradle.
I have two modules inside my project that I exported as a jar using gradle, such as:
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 no longer works. In Android Studio, I install the Build option for "Release", but after starting my tasks, there will be no JAR in my lib folder. I checked the build/intermediates/bundles/ folder and did not create the release folder. There will only be a default folder and a debug .
How can I get an external JAR from a release build?
source share