为什么我得到“所有 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?

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

问题描述

我已阅读文章

图片 2

解决方案

您的某些或其中一个库在内部使用旧版本的 customtabs,这就是显示此警告消息的原因.如果您使用最新版本实现此功能,则警告将消失.

实现'com.android.support:customtabs:28.0.0'

添加这个之后,我还为另一个旧版本的依赖项显示了相同的错误.添加此内容后,所有警告都消失了.

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

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

您也可以查看:https://stackoverflow.com/a/42374426/5167909

I have read the article All com.android.support libraries must use the exact same version specification

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

Information

All com.android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 28.0.0, 26.1.0. Examples include com.android.support:animated-vector-drawable:28.0.0 and com.android.support:customtabs:26.1.0 more... (Ctrl+F1)

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

Code

You can download the code at https://www.dropbox.com/s/zlg731ovf7h3bmi/NewMyApplication.zip?dl=0

Image1

Image2

解决方案

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.

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

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

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