android - Android Picasso 给出混合版本错误
问题描述
由于混合版本,我收到错误
所有 com.android.support 库必须使用完全相同的版本规范(混合版本可能导致运行时崩溃)。找到版本 28.0.0-rc01、27.1.0。示例包括 'com.android.support:animated-vector-drawable:28.0.0-rc01' 和 'com.android.support:exifinterface:27.1.0'
由于com.android.support:exifinterface:27.1.0
我添加了第 28 版,毕加索正在使用毕加索,可能与毕加索一起使用,但毕加索仍在使用第 27 版,而 Volley 正在使用第 28 版:
+--- com.android.volley:volley:1.1.+ -> 1.1.1
+--- com.android.support:exifinterface:28.0.0
| \--- com.android.support:support-annotations:28.0.0
+--- com.android.support:support-annotations:28.0.0
\--- com.squareup.picasso:picasso:2.71828
+--- com.squareup.okhttp3:okhttp:3.10.0
| \--- com.squareup.okio:okio:1.14.0
+--- com.android.support:support-annotations:27.1.0 -> 28.0.0
\--- com.android.support:exifinterface:27.1.0 -> 28.0.0 (*)
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:28.0.0-rc01'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
implementation 'com.android.support:design:28.0.0-rc01'
implementation 'com.android.volley:volley:1.1.+'
implementation 'com.android.support:support-annotations:28.0.0'
implementation 'com.android.support:exifinterface:28.0.0'
implementation 'com.squareup.picasso:picasso:2.71828'
}
如何解决这个问题,我应该将 SDK 降级到 27 吗?还是使用滑翔?
谢谢,
解决方案
尝试一下:
implementation ('com.squareup.picasso:picasso:2.71828') {
exclude group: 'com.android.support'
exclude module: ['exifinterface', 'support-annotations']
}
推荐阅读
- azure-app-service-plans - Azure powershell 命令获取 Web 应用程序 cpu 和内存百分比
- apache - 什么是 Apache Camel 中的重新交付和回滚?
- python-3.x - ap_uniform_sampler() 缺少 1 个必需的位置参数:python 的 Ray Tune 包中的“高”
- node.js - Mongo - 如何在保存数据时将集合名称传递给 Schema
- java - 运行 Math.Round 时出错
- python - python - 如何在python上初始化具有2列但未定义行数的数组?
- azure - 如何在 Azure 中查询 CSP/赞助订阅的使用详情?
- linux - 如何使用 linux 任务后台处理程序停止给定进程
- sql - 为什么一个视图有一个惊人的时间曲线和极限?
- java - 为什么 Java 类可以在方法中声明和初始化该类的对象?