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

相关文章

Android性能优化——之控件的优化 前面讲了图像的优化,接下...
前言 上一篇已经讲了如何实现textView中粗字体效果,里面主要...
最近项目重构,涉及到了数据库和文件下载,发现GreenDao这个...
WebView加载页面的两种方式 一、加载网络页面 加载网络页面,...
给APP全局设置字体主要分为两个方面来介绍 一、给原生界面设...
前言 最近UI大牛出了一版新的效果图,按照IOS的效果做的,页...