mcxiaoke / android-volley

DEPRECATED
4.29k stars 1.56k forks source link

how to export as a jar #108

Closed yovenny closed 9 years ago

yovenny commented 9 years ago

when run task in build.gradle below : //定义一个函数,target是生成jar包的文件名,classDir是class文件所在的文件夹 def makeJar(String target,String classDir){ exec{ executable "jar" //调用jar args "cvf",target args "-C", classDir args "","." } }

//新建一个task,名为buildLib,依赖build(build是一个自带的task) task buildLib(dependsOn:['build'])<< { makeJar("volley.jar","build/intermediates/classes/release") }

occur a problem :Execution failed for task ':testDebugUnitTest'. is anything help?