Error:(2, 0) Plugin with id 'com.github.dcendents.android-maven' not found解决办法
来源:互联网 发布:12.1算法的概念ppt 编辑:程序博客网 时间:2024/04/28 04:05
在写程序的时候,我们经常会从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下的.
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.
- 使用Maven构建Web应用
- Spring AOP源码剖析
- 苏大校花旗袍热舞一夜爆红 迷妹致敬黄致列(组图)
- html——网页上添加表格
- 新型的按键扫描程序
- Error:(2, 0) Plugin with id 'com.github.dcendents.android-maven' not found解决办法
- ScrollView控件笔记
- 定时器
- BZOJ2510 弱题
- java中单例模式(面试)
- 开机5秒内,点击空白区域显示某应用程序,5秒内若无任何操作,点击功能将自动失效
- [Android] 拓展 BaseAdapter 实现不存储列表项的 ListView
- kendoUI grid表格填充
- Scrollview不能显示顶端问题