基本上我有一个Android应用程序,它使用支持库(com.android.support:appcompat-v7 :)的23.1.1,而我m using a library which uses 25.0.0 version. Basically if I update the version and make it to be equal(the project one and the library one) I
m得到了很多空指针异常,这很奇怪,因为该应用程序在当前运行良好版本(23.1.1)。如果我强制库使用该应用程序的版本,则会出现编译错误,因为新版本(25.0.0)中添加了新内容。是否有可能以某种方式在build.gradle中说应用程序使用com.android.support:appcompat-v7的23.1.1版本:以及使用com.android(25.0.0)版本的库.support:appcompat-v7 :?
最佳答案
Is it possible somehow to say in the build.gradle let`s the app be using the 23.1.1 version of com.android.support:appcompat-v7: and the library to use its(25.0.0) version of com.android.support:appcompat-v7:?
否,因为您的应用程序中只有
appcompat-v7
的副本。
关于android - Android Gradle依赖关系与com.android.support:appcompat-v7发生冲突,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42983087/