0

I was making android .jar using following code

task deleteJar(type: Delete) {
    delete 'build/outputs/my_library_name.jar'
}           

task createJar(type: Copy) {
    from('build/intermediates/bundles/release/')
    into('build/outputs/')
    include('classes.jar')
    rename('classes.jar', 'my_library_name.jar')
}

createJar.dependsOn(deleteJar, build)

It was working fine until we updated gradle to 3.5.0 and migrate the project to android X (Android 10)

First my .jar stopped including my latest code and later I deleted the jar using deleteJar and created it using createJar it stopped creating new .jar at all.

I have above command as follow:

gradle->project->other->deleteJar

gradle->project->other->createJar

Garrett Manley
  • 337
  • 3
  • 11
Learner
  • 1
  • 1
  • Just an FYI, Android X is not a common name for Android 10. AndroidX refers to the new libraries that have replaced the Android support libraries. https://developer.android.com/jetpack/androidx – Garrett Manley May 07 '20 at 18:50
  • @GarrettManley Since I have migrated my project to Androidx I am seeing above issue, thats why I added androidx tag – Learner May 07 '20 at 18:59
  • Please update your question to reflect that more clearly – Garrett Manley May 08 '20 at 20:51

0 Answers0