After updating Android Studio, there is no service pack folder

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?

+5
source share
1 answer

Not sure if this is the right solution, but I added it to my gradle file in the Android section and returned the release folder.

 publishNonDefault true 
+4
source

Source: https://habr.com/ru/post/1265940/


All Articles