文章类型: |
ANDROID |
关键词: |
Plugin,with,id,,com,github.dcendents.android-maven,not,found,解决办法 |
内容摘要: |
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解决办法
2019/10/31 14:54:37 来源:apple 阅读:
在写程序的时候,我们经常会从gifhub上下载一些别人的代码来学习或是下载一些第三方的插件来使用,这个时候我们就要把对方的library文件导入到我们的项目中,问题来了,有时候会提示 Error:(2, 0) Plugin with id 'com.github.dcendents.android-maven' not found这个错误,怎么解决呢.其实,很简单,只要在我们的project项目中的build.gradle文件中加入两行代码,重新编译一下就OK了.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0'
//下面两行就是加的代码
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
}
}
注意:这里是项目根目录下的build.gradle,不是app下的,也不是你导入的library下的.
↑ 上一篇文章:
android 判断字符串是否为空的最优方法 关键词:android,判断,字符串,是否,为空,最优,方法 发布日期:2019/10/23 16:04:33
↓ 下一篇文章:
Android 中 SharedPreferences 的简单用法试例 关键词:Android,,SharedPreferences,简.. 发布日期:2019/11/1 11:22:06
相关文章:
android开发中的"Exported service does not require permission"警告 关键词:android,Exported,service,does,not,require,permis.. 发布日期:2017-09-08 11:14
.net报“System.MissingMethodException: Method not found(找不到方法)”错误的解决方法 关键词:.net,System,MissingMethodException,Method,not,fo.. 发布日期:2018-09-14 15:48
Unable to resolve target android-XX的解决办法 关键词:Unable,to,resolve,target,android-XX,解决办法 发布日期:2017-03-10 09:02
相关目录:
.NET,
ANDROID,
JAVA