问题描述
这是我的 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
来查看你的传递依赖是什么(这将显示什么依赖于 以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 库必须使用完全相同的版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!