SERVICE_VERSION_UPDATE_REQUIRED error using Firebase Analytics on Android

Deadly 提交于 2019-12-06 17:57:18

问题


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

My project version is:

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'}

The log is print out through

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?


回答1:


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

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.




回答2:


This message means that you need to update Google Play Store app on the device.

If you are using Android Studio Emulator:

  1. Open extended controls by clicking the 3 dots at the bottom of control menu
  2. Select Google Play
  3. Click Update
  4. Inside the emulator click the UPDATE button

After the new version is downloaded and installed this error will be gone.



来源:https://stackoverflow.com/questions/38120919/service-version-update-required-error-using-firebase-analytics-on-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!