Error:(2, 0) Plugin with id 'com.github.dcendents.android-maven' not found.
2016-07-04 15:13
495 查看
在github上下载的开源项目出现这个问题
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 } }
相关文章推荐
- com/android/dx/command/dexer/Main : Unsupported major.minor version 52.0
- Android测试工具收集
- No More findViewById
- 防淘宝详情页 自动分页滑动
- Xamarin Android布局文件没有智能提示
- Android GridView设置条目的高度与宽度相等、GridView条目宽高相同
- Android四大组件之ContentProvider(上)
- android特性之CoordinatorLayout用法探析实例
- Xamarin Android布局文件没有智能提示
- android:clipToPadding和android:clipChildren
- Android开发中遇到的问题
- android:clipToPadding的使用
- Android 代码中动态改变Shape
- Android 解决ListView嵌套GridView、GridView显示不正常的方法
- Android BLE开发: BLE Peripheral开发流程
- android5.1 install_apk 笔记
- 解决android中点击对话框外部,对话框消失的问题
- 跟我学Android之八 ActionBar与菜单
- 跟我学Android之八 ActionBar与菜单
- 跟我学Android之八 ActionBar与菜单