为什么我会收到“所有com.android.support库必须使用完全相同的版本规范"在Android Studio 3.2.1中? [英] Why do I get "All com.android.support libraries must use the exact same version specification" in Android Studio 3.2.1?

查看:126
本文介绍了为什么我会收到“所有com.android.support库必须使用完全相同的版本规范"在Android Studio 3.2.1中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已阅读文章所有com.android.support库都必须使用完全相同的版本规范

但是我添加代码实现'com.google.android.gms:play-services-ads:17.0.0'后仍然得到以下信息,为什么?

But I still get the following information after I add the code implementation 'com.google.android.gms:play-services-ads:17.0.0', why?

信息

所有com.android.support库必须使用完全相同的版本规范(混合版本可能导致运行时崩溃).找到版本28.0.0,26.1.0.示例包括com.android.support:animated-vector-drawable:28.0.0和com.android.support:customtabs:26.1.0更多...(Ctrl + F1)

即使我清理项目并重建项目,信息也会保留.

The information keep even if I Clean project and Rebuild Project.

代码

您可以从 https://www.dropbox .com/s/zlg731ovf7h3bmi/NewMyApplication.zip?dl = 0

图片1

图片2

推荐答案

您的某些或内部库在内部使用旧版本的customtabs,这就是此警告消息的原因.如果您使用最新版本实施此操作,则警告将消失.

Some or one of your libraries use an old version of customtabs internally, that's why this warning message is showing. If you implement this with the latest version then the warning will be gone.

implementation 'com.android.support:customtabs:28.0.0'

添加此选项后,对于另一个较旧版本的依赖项,我也显示了相同的错误.添加此内容后,所有警告也消失了.

After adding this I have also shown the same error for another older version of dependencies. After adding this also all warning is gone.

implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support:support-media-compat:28.0.0'

希望这将帮助您解决问题.

Hope this will help you to solve your problem.

您还可以检查以下内容: https://stackoverflow.com/a/42374426/5167909

Also you can check this: https://stackoverflow.com/a/42374426/5167909

这篇关于为什么我会收到“所有com.android.support库必须使用完全相同的版本规范"在Android Studio 3.2.1中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆