android – 库com.google.firebase:firebase-analytics正在被各种其他库请求

前端之家收集整理的这篇文章主要介绍了android – 库com.google.firebase:firebase-analytics正在被各种其他库请求前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我在更新Firebase库时遇到此错误

The library com.google.firebase:firebase-analytics is being requested
by varIoUs other libraries at [[15.0.1,16.0.0),[16.0.1,16.0.1],
[16.0.1,99999]],but resolves to 16.0.1. Disable the plugin and check
your dependencies tree using ./gradlew :app:dependencies.

依赖关系是:

implementation 'com.google.firebase:firebase-core:16.0.1'
implementation 'com.google.firebase:firebase-messaging:17.1.0'
implementation 'com.google.firebase:firebase-database:16.0.1'
implementation 'com.google.firebase:firebase-appindexing:16.0.1'
implementation 'com.google.firebase:firebase-crash:16.0.1'
implementation 'com.google.firebase:firebase-auth:16.0.2'
implementation 'com.google.firebase:firebase-invites:16.0.1'
implementation 'com.google.firebase:firebase-config:16.0.0'
implementation 'com.google.firebase:firebase-ads:15.0.1'
implementation 'com.google.firebase:firebase-firestore:17.0.2'

有没有一种简单的方法来找到正确的配置?
如果没有,什么插件将被禁用以及如何?如果我只是运行任务我得到相同的错误.

更新:
我认为这种依赖有一些事情要做,因为如果禁用它插入依赖任务运行:

implementation 'com.google.android.gms:play-services-auth:15.0.1'

解决方法

尝试使用以下步骤:

>更新您的实施版本(对于最新的firebase版本,请参阅发行说明https://firebase.google.com/support/release-notes/android)
>使用最新的google-services版本更新项目build.gradle文件(目前classpath’com.google.gms:google-services:4.0.1)

或者见this similar post

原文链接:https://www.f2er.com/android/317301.html

猜你在找的Android相关文章