在Android上使用Firebase Analytics的SERVICE_VERSION_UPDATE_REQUIRED错误 [英] SERVICE_VERSION_UPDATE_REQUIRED error using Firebase Analytics on Android

查看:50
本文介绍了在Android上使用Firebase Analytics的SERVICE_VERSION_UPDATE_REQUIRED错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将Firebase Analytics集成到我的项目中.

I want to integrate Firebase Analytics in my project.

我遵循了指南,但是它给了我这个警告:

I followed the Guide but it gives me this warning:

06-30 18:38:30.514 W/FA      ( 2091): Service connection failed: ConnectionResult{statusCode=SERVICE_VERSION_UPDATE_REQUIRED, resolution=null, message=null}
06-30 18:38:30.888 W/FA      ( 2091): Service connection failed: ConnectionResult{statusCode=SERVICE_VERSION_UPDATE_REQUIRED, resolution=null, message=null}
06-30 18:38:32.306 W/FA      ( 2091): Service connection failed: ConnectionResult{statusCode=SERVICE_VERSION_UPDATE_REQUIRED, resolution=null, message=null}
06-30 18:38:32.338 W/FA      ( 2091): Service connection failed: ConnectionResult{statusCode=SERVICE_VERSION_UPDATE_REQUIRED, resolution=null, message=null}
06-30 18:38:32.661 W/FA      ( 2091): Service connection failed: ConnectionResult{statusCode=SERVICE_VERSION_UPDATE_REQUIRED, resolution=null, message=null}
06-30 18:39:32.680 W/FA      ( 2091): Tasks have been queued for a long time

我的项目版本为:

ext {
minSdkVersion = 17
targetSdkVersion = 23
compileSdkVersion = 23
compileSdkVersionS = 'Google Inc.:Google APIs:23'
supportVersion = '24.0.0'
buildToolsVersion = '23.0.2'
sourceCompatibilityVersion = JavaVersion.VERSION_1_7
targetCompatibilityVersion = JavaVersion.VERSION_1_7
gradleVersion = '2.1.2'
playServicesVersion = '9.2.0'
gsonVersion = '2.3'}

通过以下方式打印日志

adb shell setprop log.tag.FA VERBOSE
adb shell setprop log.tag.FA-SVC VERBOSE
adb logcat -v time -s FA FA-SVC

我认为我现在使用的版本已经足够好了,但是我仍然收到错误消息,有人可以给我提示吗?

I think the version I am using now is good enough but I am still getting the error message, can anyone give me a hint on it?

推荐答案

在对问题发表评论(见上文)后,我尝试在装有旧版Google Play的模拟器上运行以Firebase 9.2.0构建的应用程序服务.使用问题中发布的adb命令,我看到了与问题中包含的警告相同的警告.在正常的logcat输出中,还会显示以下消息:

After posting comments on the question (see above), I experimented running an app built with Firebase 9.2.0 on an emulator that had an old version of Google Play Services. Using the adb commands posted in the question, I saw the same warnings as those included in the question. Also in the normal logcat output was the message:

W/GooglePlayServicesUtil: Google Play services out of date.  Requires 9256000 but found 9080030

您需要在设备上更新Google Play服务.如果您运行的是Firebase 9.2.0,则所需的Play服务版本为9.2.56.

You need to update Google Play Services on your device. If you are running Firebase 9.2.0, the required Play Services version is 9.2.56.

这篇关于在Android上使用Firebase Analytics的SERVICE_VERSION_UPDATE_REQUIRED错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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