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

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

build.gradle (module )配置 以及 build.gradle (project ) 之间的关系

在导入xUtils3的时候爆出的错误:

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

解决方法:

在project的build.gradle中添加:

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

 

 

最后 try again 或者 sync now 就 OK了!

猜你喜欢

转载自1124117571.iteye.com/blog/2312481