android studio不要制作jar文件

时间:2017-03-21 11:34:57

标签: java android jar

unity和我想要的peristalsis

但不会发生android jar文件。

我看不到stackoverflow语句。

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2',     {
exclude group: 'com.android.support', module: 'support-annotations'
    })
    compile 'com.android.support:appcompat-v7:24.2.1'
    compile 'com.android.support.constraint:constraint-layout:1.0.0-alpha8'
    testCompile 'junit:junit:4.12'
    compile files('libs/classes.jar')
}

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','CustomLibrary.jar')
}

exportJar.dependsOn(deleteOldJar,build)

截图: enter image description here enter image description here

0 个答案:

没有答案