android - Android Gradle依赖关系与com.android.support:appcompat-v7发生冲突

标签 android gradle build android-support-library

基本上我有一个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/

相关文章:

android - BluetoothA2dpSink 和BluetoothAvrcpController 类无法访问,如何添加到SDK?

Android:将日期/时间添加到 gradle 输出 apk 文件名

android - 无法使用模块编译项目

debugging - cmake:如何在调试和 Release模式下构建 opencv?

android - 透明度问题 Samsung Galaxy S3

android - findViewById 为 action_bar_title 返回 null

java - Android Studio - 任务 ':app:transformClassesWithDexForDebug' 执行失败 - java.exe 以非零退出值 2 完成

Jenkins 构建失败,Cobertura 错误

android 获取拍照时手机的方位角

android - Android Studio 添加Google Play 导致编译失败