使用AS生成包含ASSETS的JAR包

2017-03-24  本文已影响54人  caym
task makeJar(type: Jar){
    from zipTree(file('build/intermediates/bundles/release/classes.jar'))
    from fileTree(dir:'src/main',includes:['assets/**'])
    baseName = "sdk_${android.defaultConfig.versionName}_un"
    destinationDir = file('build')
}

makeJar.dependsOn(build)
上一篇下一篇

猜你喜欢

热点阅读