且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

为什么我得到“所有 com.android.support 库必须使用完全相同的版本规范"?在 Android Studio 3.2.1 中?

更新时间:2023-11-17 12:18:16

您的某些或其中一个库在内部使用旧版本的 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://***.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://***.com/a/42374426/5167909