Created
July 5, 2016 02:15
-
-
Save mr-wind/307ba4eaa5a4da4ec8856e7179159f07 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//在对应的module添加下面的代码 | |
task makeJar(type: Copy) { | |
delete 'build/libs/mysdk.jar' | |
from('build/intermediates/bundles/release/') | |
into('build/libs/') | |
include('classes.jar') | |
rename ('classes.jar', 'mysdk.jar') | |
} | |
makeJar.dependsOn(build) | |
//在Terminal中使用命令:gradview makeJar 来生成jar包 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment