简体   繁体   English

在Android上使用Firebase Analytics时出现SERVICE_VERSION_UPDATE_REQUIRED错误

[英]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:

  1. Open extended controls by clicking the 3 dots at the bottom of control menu 单击控制菜单底部的3个点打开扩展控件
  2. Select Google Play 选择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. 下载并安装新版本后,此错误将消失。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 SERVICE_VERSION_UPDATE_REQUIRED - SERVICE_VERSION_UPDATE_REQUIRED 对于Google Play服务,Android Wear模拟器显示错误SERVICE_VERSION_UPDATE_REQUIRED - Android Wear Emulator show Error SERVICE_VERSION_UPDATE_REQUIRED for Google Play services Android Wear错误ConnectionResult {statusCode = SERVICE_VERSION_UPDATE_REQUIRED,resolution = null} - Android Wear Error ConnectionResult{statusCode=SERVICE_VERSION_UPDATE_REQUIRED, resolution=null} 在Android中集成Google Plus时,SERVICE_VERSION_UPDATE_REQUIRED和Google Play服务已过期 - SERVICE_VERSION_UPDATE_REQUIRED and Google play service out of date while integrating Google Plus in android 连接失败=> ConnectionResult {statusCode = SERVICE_VERSION_UPDATE_REQUIRED,分辨率=空,消息=空} Android Wear - Connection Failed=>ConnectionResult{statusCode=SERVICE_VERSION_UPDATE_REQUIRED, resolution=null, message=null} Android Wear Android GoogleApiAvailability SERVICE_VERSION_UPDATE_REQUIRED我可以获得推送令牌吗? - Android GoogleApiAvailability SERVICE_VERSION_UPDATE_REQUIRED Can I get push token? GooglePlayServicesAvailable何时返回SERVICE_VERSION_UPDATE_REQUIRED? - When does isGooglePlayServicesAvailable return SERVICE_VERSION_UPDATE_REQUIRED? 由于错误代码:SERVICE_VERSION_UPDATE_REQUIRED而无法连接到GoogleApiClient - Cannot connect to GoogleApiClient due to errorcode: SERVICE_VERSION_UPDATE_REQUIRED Google Play服务API客户端无法连接:SERVICE_VERSION_UPDATE_REQUIRED - Google Play services API client can't connect: SERVICE_VERSION_UPDATE_REQUIRED Flutter 需要更新版本的 Android SDK。 要更新,请运行:错误? - Flutter A newer version of the Android SDK is required. To update, run: error?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM