lixplor / android-Q-A

🐞 android related questions and answers
0 stars 0 forks source link

Error:(2, 0) Plugin with id ‘com.github.dcendents.android-maven’ not found #10

Closed lixplor closed 7 years ago

lixplor commented 7 years ago

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

lixplor commented 7 years ago

解决: 找到project 的 build.gradle 添加如下代码. 即在项目的build.gradle中的依赖添加classpath


buildscript {

     repositories {

         jcenter()

     }

     dependencies {

         classpath 'com.android.tools.build:gradle:2.0.0-alpha3'

         classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'

         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

     } 
}