Error:(2, 0) Plugin with id 'com.github.dcendents.android-maven' not found解决办法
来源:互联网 发布:网络色情图片和小说 编辑:程序博客网 时间:2024/04/29 02:41
导入开源项目的时候老是报这个错
Error:(2, 0) Plugin with id 'com.github.dcendents.android-maven' not found
引起这个错误的原因是因为你在,AndroidStudio的model中的(注意是model中的,不是Project中的)build.gradle文件中有一行apply plugin: 'com.github.dcendents.android-maven'而你没有在buildscript中制定这个的位置。所以,你应该到你项目的(也就是Project目录下)找到build.gradle 文件,修改buildscript如下
buildscript {
repositories {
jcenter()
}
dependencies {
//。。。你的其他配置
//添加这行 classpath 'com.github.dcendents:android-maven-plugin:1.2
// NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files
}}
你需要在Project的build.gradle下面(buildscript-dependencies)添加这两个依赖项
classpath
'com.github.dcendents:android-maven-gradle-plugin:1.3'
classpath
'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.2'
另外需要注意的是不仅要加这两个,还要保证后面的版本号是对的才行(这个你其实可以在你下载下来的github源项目的配置文件里去找),我之前就是因为把上面两个版本号都写成了
1.2
,
1.2
就都没编译过
参考网址:https://github.com/dcendents/android-maven-gradle-plugin
https://github.com/dcendents/android-maven-plugin
https://github.com/simpligility/android-maven-plugin
http://www.xyczero.com/blog/article/19/
0 0
- 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解决办法
- 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解决办法
- 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解决办法
- 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解决办法
- 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解决办法
- 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解决办法
- 解决办法: Error:(2, 0) Plugin with id 'com.github.dcendents.android-maven' not found.
- 关于导入moudle遇到的错误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.
- 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.
- Error:(2, 0) Plugin with id 'com.github.dcendents.android-maven' not found.
- CyclicBarrier
- 啤酒和饮料
- R语言快速入门_案例分析之考试成绩的回归分析
- delphi 中 使用 TIdHTTP 提交Post数据
- swift3.0中的代理协议
- Error:(2, 0) Plugin with id 'com.github.dcendents.android-maven' not found解决办法
- 最长递增子序列
- BZOJ 3779 重组病毒 LCT维护子树信息
- springmvc常用注解标签详解
- DOM0 DOM2 DOM3区别
- filter:alpha
- Java测试框架比较:TestNG VS JUnit 4
- HTML5基础加强css样式篇(IE浏览器版本区别 条件表达式)(三十八)
- 以正确的姿势实现一棵JavaScript菜单树