Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save sreelallalu/0d86c83a4f3cfb43eca056ac31ce6ebc to your computer and use it in GitHub Desktop.

Select an option

Save sreelallalu/0d86c83a4f3cfb43eca056ac31ce6ebc to your computer and use it in GitHub Desktop.
ExportJarfilefrom studio
//change
apply plugin:'com.android.library'
//delete application id,version code ,version name
task deleteOldJar(type: Delete)
{
delete 'release/AndroidPlugin.jar'
}
task exportJar(type: Copy)
{
from(build/intermediates/bundles/release/)
into('release/')
include('classes.jar')
rename('classes.jar','AndroidPlugin.jar')
}
exportJar.dependsOn(DeleteOldJar,build)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment