您的位置:首页 > 移动开发 > Android开发

Error:(2, 0) Plugin with id ‘com.github.dcendents.android-maven’ not found解决办法

2016-09-21 20:19 549 查看

错误提示

Error:(2, 0) Plugin with id ‘com.github.dcendents.android-maven’ not found解决办法

解决方案

找到project 的 build.gradle 添加如下代码

这是需要添加的代码:

<span style="color:#009900;">classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.0"12</span>
需要添加到地方:project 的 build.gradle 添加
buildscript {
repositories {
jcenter()
}
dependencies {
<span style="color:#009900;"> classpath 'com.android.tools.build:gradle:2.0.0-alpha3'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'</span>
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
}
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐