android gradle copy task not work -


i have project structure as:

-main project
--subject a

in subject build.gradle add copy task

 task makedebugjar(type: copy) {    def dist = new file("livenesslib/build/outputs","jars")    if (!dist.exists()) {     dist.mkdir()    }    println "++++++debug mylib task invoke ++++++: "    def sourcedir = new file("build/intermediates/bundles/debug/")    if (sourcedir.exists()) {        from(sourcedir) {          include('classes.jar')        }       into(dist)       println "++++++copy doaane ++++++: "       rename('classes.jar', 'zaliveness-debug.jar')       println "++++++rename done ++++++: "   }  }  makedebugjar.dependson build 

then build main project ,the log show every step invoke,and dir jars created,but no jar in dir .

anyone can me resolve problem ? much

task copyfiles(type: copy)  copyfiles {     description = 'copies html5 files common library...'     '../../www'     'assets/www'     include('**/*') } 

please see:

how run copy task android studio assets folder


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -