无法解决com.google.firebase:firebase-crash:17.0.2 [英] Failed to resolve com.google.firebase:firebase-crash:17.0.2

查看:77
本文介绍了无法解决com.google.firebase:firebase-crash:17.0.2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试实现Firebase的以下几个功能;

I'm trying to implement a couple of features of Firebase as following;

implementation 'com.google.firebase:firebase-core:16.0.4'
implementation 'com.google.firebase:firebase-messaging:16.0.4'
implementation 'com.google.firebase:firebase-database:16.0.4'
implementation 'com.google.firebase:firebase-crash:16.0.4'

implementation 'com.google.android.gms:play-services-analytics:16.0.4'

问题是gradle同步失败并出现以下错误;

The problem is that gradle sync is failing with following errors;

无法解决:com.google.firebase:firebase-core:17.0.2

无法解决:com.google.firebase:firebase-messaging:17.0.2

无法解决:com.google.firebase:firebase-database:17.0.2

无法解决:com.google.firebase:firebase-crash:17.0.2

无法解决:com.google.android.gms:play-services-analytics:17.0.2

无法解决:com.google.android.gms:play-services-location:17.0.2

无法解决:com.google.android.gms:play-services-base:17.0.2

这些错误非常令人困惑,因为在build.gradle中没有位置,我既没有使用Firebase的17.0.2版本,也没有玩服务.有任何线索吗?

These errors are very confusing as no where in build.gradle I'm neither hitting 17.0.2 version of Firebase nor play services. Any clue?

推荐答案

您需要更新顶级build.gradle才能使用最新版本的google services插件.看来您使用的是一个非常老的版本,仍然假定所有Firebase和Play依赖项必须是同一版本,而不再是这种情况.

You need to update your top-level build.gradle to use the latest version of the google services plugin. It looks like you're using a very old one that still assumes that all the Firebase and Play dependencies must be the same version, which is no longer the case.

classpath 'com.google.gms:google-services:4.1.0'

您应该熟悉文档中的最新集成说明以及每个依赖项的最新版本.

You should familiarize yourself with the latest integration instructions in the documentation, along with the latest versions of each dependency.

此外,您应该停止使用Firebase崩溃报告,并迁移到 Crashlytics .Firebase崩溃报告已停用.

Also, you should stop using Firebase Crash Reporting and migrate to Crashlytics. Firebase Crash Reporting is decommissioned.

这篇关于无法解决com.google.firebase:firebase-crash:17.0.2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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