[英]SERVICE_VERSION_UPDATE_REQUIRED error using Firebase Analytics on Android
I want to integrate Firebase Analytics in my project. 我想在我的项目中集成Firebase Analytics。
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? 我认为我现在使用的版本已经足够好但我仍然收到错误消息,有人可以给我一个暗示吗?
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. 在对问题发表评论后(见上文),我尝试在具有旧版Google Play服务的模拟器上运行使用Firebase 9.2.0构建的应用。 Using the adb
commands posted in the question, I saw the same warnings as those included in the question. 使用问题中发布的adb
命令,我看到了与问题中包含的警告相同的警告。 Also in the normal logcat
output was the message: 在正常的logcat
输出中也是消息:
W/GooglePlayServicesUtil: Google Play services out of date. Requires 9256000 but found 9080030
You need to update Google Play Services on your device. 您需要在设备上更新Google Play服务。 If you are running Firebase 9.2.0, the required Play Services version is 9.2.56. 如果您运行的是Firebase 9.2.0,则所需的Play服务版本为9.2.56。
This message means that you need to update Google Play Store app on the device. 此消息表示您需要在设备上更新Google Play商店应用。
If you are using Android Studio Emulator: 如果您使用的是Android Studio Emulator:
After the new version is downloaded and installed this error will be gone. 下载并安装新版本后,此错误将消失。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.