Android Studio所有gms/firebase库必须使用完全相同的版本 [英] Android Studio all gms/firebase libaries must use the exact same version

查看:273
本文介绍了Android Studio所有gms/firebase库必须使用完全相同的版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的Gradle:app文件

This is my Gradle:app file

尝试重建时出现错误: 所有gms/firebase库必须使用完全相同的版本规范.找到的版本为11.6.0、10.2.0.示例包括com.google.android.gms:play-services-auth:11.6.0和com.google.android. gms:play-services-location:10.2.0"

Error I get when I try to rebuild: "All gms/firebase libaries must use the exact same version specification. Found versions 11.6.0, 10.2.0. Examples include com.google.android.gms:play-services-auth:11.6.0 and com.google.android.gms:play-services-location:10.2.0"

有人知道如何消除错误吗?

Anyone know how to get rid of the error?

推荐答案

运行./gradlew app:dependencies来查看您的传递依赖项(例如,这将显示lib依赖于10.2.0)

Run ./gradlew app:dependencies to see what your transitive dependencies are (this will show what lib is depending on 10.2.0 for example)

这篇关于Android Studio所有gms/firebase库必须使用完全相同的版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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