无法解析:com.google.firebase:firebase-analytics:9.0.0[复制]

时间:2021-07-26 15:17:57

This question already has an answer here:

这个问题已经有了答案:

According to Google I/O 2016,I know the "Firebase",it is very nice for me,but I can not use it because this error.I have get a solution that update "Google play services" to 30,but no update tips.

根据谷歌I/O 2016,我知道“Firebase”,它对我很好,但是我不能使用它,因为这个错误。我有一个解决方案,更新“谷歌游戏服务”到30,但没有更新提示。

无法解析:com.google.firebase:firebase-analytics:9.0.0[复制]

2 个解决方案

#1


12  

You have to update your SDK Manager

您必须更新您的SDK管理器。

无法解析:com.google.firebase:firebase-analytics:9.0.0[复制]

Also you have to use

你也必须使用。

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

in your buildscript block and this version has to work with Google Play services 9.0 (+).

在您的buildscript块中,这个版本必须与谷歌Play服务一起工作9.0(+)。

#2


2  

try this

试试这个

com.google.firebase:firebase-core:9.0.0

instead of

而不是

com.google.firebase:firebase-analytics:9.0.0

#1


12  

You have to update your SDK Manager

您必须更新您的SDK管理器。

无法解析:com.google.firebase:firebase-analytics:9.0.0[复制]

Also you have to use

你也必须使用。

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

in your buildscript block and this version has to work with Google Play services 9.0 (+).

在您的buildscript块中,这个版本必须与谷歌Play服务一起工作9.0(+)。

#2


2  

try this

试试这个

com.google.firebase:firebase-core:9.0.0

instead of

而不是

com.google.firebase:firebase-analytics:9.0.0