Firebase依赖项冲突找到了"com.google.firebase:firebase-database:11.0.4"和"com.google.android.gms:play-services-vision:9.4.0" [英] Firebase dependency conflict Found 'com.google.firebase:firebase-database:11.0.4', with 'com.google.android.gms:play-services-vision:9.4.0'

查看:50
本文介绍了Firebase依赖项冲突找到了"com.google.firebase:firebase-database:11.0.4"和"com.google.android.gms:play-services-vision:9.4.0"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序包括QR扫描仪和生成器,但是当我添加"com.google.android.gms:play-services-vision:9.4.0"库时,它与"com.google.firebase:firebase-database:11.0"相冲突.4'库

my application include QR Scanner and Generator but when i add 'com.google.android.gms:play-services-vision:9.4.0' library it conflect with 'com.google.firebase:firebase-database:11.0.4' library

这里是我对Gradle的依赖

加上它显示了一个错误..错误:任务':app:processDebugGoogleServices'的执行失败.

plus it shows me an error .. Error:Execution failed for task ':app:processDebugGoogleServices'.

请通过更新google-services插件的版本来解决版本冲突(有关最新版本的信息,请访问

Please fix the version conflict either by updating the version of the google-services plugin (information about the latest version is available at https://bintray.com/android/android-tools/com.google.gms.google-services/) or updating the version of com.google.android.gms to 9.8.0.

推荐答案

在处理Google API时始终尝试使用相同版本的API:

Always try to use same version of APIs when you are dealing with google APIs:

如果您使用的是Android Studio 3.0,则可以同时使用编译和实现

implementation 'com.google.firebase:firebase-database:11.0.4'
implementation 'com.google.android.gms:play-services-vision:11.0.4'

如果您使用的是低于3.0的Android Studio版本,请使用编译

 compile 'com.google.firebase:firebase-database:11.0.4'
 compile 'com.google.android.gms:play-services-vision:11.0.4'

这篇关于Firebase依赖项冲突找到了"com.google.firebase:firebase-database:11.0.4"和"com.google.android.gms:play-services-vision:9.4.0"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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