美文网首页
Android 依赖冲突语法

Android 依赖冲突语法

作者: CarlWu_S | 来源:发表于2017-07-28 11:14 被阅读0次

依赖冲突解决语法:

```

dependencies {

compile(project(':blelibrary')) {exclude group:'com.android.support'}//针对本地项目依赖的冲突解决

compile('com.github.niorgai:StatusBarCompat:2.1.3', {exclude group:'com.android.support'})//针对远端项目依赖的冲突解决

}

```

附上参考链接:

http://benweizhu.github.io/blog/2015/01/31/deep-into-gradle-in-action-3/

https://discuss.gradle.org/t/excluding-transitive-dependency-does-not-work-for-project-dependency/8719

相关文章

网友评论

      本文标题:Android 依赖冲突语法

      本文链接:https://www.haomeiwen.com/subject/ohpxlxtx.html