问题是:未找到插件
方法是:
在project的build.gradle中添加全局依赖
dependencies {
classpath 'com.android.tools.build:gradle:2.3.0'//声明gradle插件,2.3.0为插件版本号
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
//1.自动化maven打包插件
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
//2.自动上传至Bintray平台插件
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}