1.进入工程目录,输入./gradlew,如显示"... build success" 则表示当前目录下gradle可用;如当前目录下无gradle,则在线下载 ..
2.输入./gradlew clean 清空build文件夹
3.输入./gradlew build 即可 在build文件夹中可查看到jar包
build过程中gradle总报javaDoc生成错误,解决办法:
./gradlew -x javadocJar build
from :http://www.oschina.net/question/1588291_2157211?sort=time