【发布时间】:2017-03-24 03:09:05
【问题描述】:
基本上我有 Android 应用程序,它使用 23.1.1 的支持库 (com.android.support:appcompat-v7:) 而 Im 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) Im 得到很多空指针异常,这很奇怪,因为应用程序可以工作在当前版本(23.1.1)中非常好。如果我强制库使用应用程序的版本 - 会出现编译错误,因为新版本 (25.0.0) 添加了新内容。是否有可能在 build.gradle 中以某种方式说让应用程序使用 com.android.support:appcompat-v7: 的 23.1.1 版本和使用其 (25.0.0) 版本的 com.android 的库.support:appcompat-v7:?
【问题讨论】:
标签: android gradle build android-support-library