Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SERVICE_VERSION_UPDATE_REQUIRED error using Firebase Analytics on Android

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?

like image 709
Damon Yuan Avatar asked Jun 30 '16 10:06

Damon Yuan


1 Answers

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.

like image 172
Bob Snyder Avatar answered Oct 18 '22 13:10

Bob Snyder