所有gms/firebase库必须使用完全相同的版本规范 [英] All gms/firebase libraries must use the exact same version specification
问题描述
所有gms/firebase库必须使用完全相同的版本规范(混合版本可能导致运行时崩溃).找到版本15.0.0、12.0.1.示例包括com.google.android.gms:play-services-ads:15.0.0和com.google.android.gms:play-services:12.0.1
All gms/firebase libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 15.0.0, 12.0.1. Examples include com.google.android.gms:play-services-ads:15.0.0 and com.google.android.gms:play-services:12.0.1
有些库,工具和库的组合不兼容或可能导致错误.一种不兼容的情况是使用不是最新版本的Android支持库(尤其是低于targetSdkVersion的版本)进行编译.
There are some combinations of libraries, or tools and libraries, that are incompatible, or can lead to bugs. One such incompatibility is compiling with a version of the Android support libraries that is not the latest version (or in particular, a version lower than your targetSdkVersion).
android studio给我这个错误.如何解决这个错误?这是显示错误的图像.
android studio is giving me this error. How to solve this error? Here is the image of showing error.
推荐答案
首先使用整个播放服务是错误的,除非您确实需要每个单独的子程序包,但是从屏幕快照中您已经在使用某些子程序包. .使用整个播放服务包可能意味着您需要多dex支持,因为其中包括许多不需要的方法,在这种情况下,Proguard是您的朋友.所以我的回答是:删除该行.
First of all use the whole play service is just wrong unless you really need every single sub-package, but from your screenshot you are already using some sub-package. The use of the whole play service package could means you need multi dex support because you include a lot of not needed methods, Proguard is your friend in this case. So my response is: just remove that line.
这篇关于所有gms/firebase库必须使用完全相同的版本规范的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!