github 下载代码编译不过 apply plugin: 'com.github.dcendents.android-maven'
来源:互联网 发布:兄弟连php怎么样 编辑:程序博客网 时间:2024/06/08 07:45
github 下载代码编译不过 出现 Error:(2, 0) No service of type Factory
定位到是一个module 里出错 apply plugin: 'com.github.dcendents.Android-maven'
原来是导入工程时修改了根目录下的build.gradle的android gradle版本。
原码是2.1.2.导入工程时更新到了2.2.2。 更新后会修改gradle-wrapper的版本为2.14.1
由于不同的gradle版本需要不同marven-gradle-plugin版本。将版本修改为正确的版本即编译通过
各版本对应关系参照
https://github.com/dcendents/android-maven-gradle-plugin
dependencies {
classpath 'com.android.tools.build:gradle:2.1.2'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.2'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.2'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.2'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5' // 修改此处
}
附表:
- github 下载代码编译不过 apply plugin: 'com.github.dcendents.android-maven'
- Failed to apply plugin [id 'com.github.dcendents.android-maven']
- 从github上下载开源项目 failed to apply plugin[id 'com.github.dcendents.android-maven']
- Android Studio Error:(2, 0) apply plugin: 'com.github.dcendents.android-maven'报错
- as定位apply plugin: 'com.github.dcendents.android-maven'问题解决办法
- com.github.dcendents:android-maven-gradle-plugin:1.5版本对应
- Plugin with id 'com.github.dcendents.android-maven' not found
- 有时候下载开源项目 如果用了autolayout 就会遇到failed to apply plugin[id 'com.github.dcendents.android-maven']
- Android Studio导入库出现 Plugin with id 'com.github.dcendents.android-maven' not found.
- Android Studio提示: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: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.
- Plugin with id ‘com.github.dcendents.android-maven’ not found解决办法
- JS总结
- 为何在查询中索引未被使用 (Doc ID 1549181.1)
- OkHttp的实现原理(二)之异步
- ajax获取所有数据,前台分页,搜索
- 插入排序
- github 下载代码编译不过 apply plugin: 'com.github.dcendents.android-maven'
- 关于LTE终端的所谓的五模、七模、十频、十一频
- altium designer 常用快捷键小结
- JavaScript正则表达式
- 单例iOS
- Java中Integer值比较不注意的问题
- CSS常见兼容问题解决方案(持续更新)
- Java程序组装树形List
- Linux上vi(vim)编辑器使用教程