android - "Google Play services are updating"发布时出错,不是模拟器(Google Play Services 12.6.73,华为设备)

标签 android google-maps android-studio google-play-services google-maps-android-api-2

我面临与 Stack Overflow 问题中相同的问题 "Google Play services are updating" in Google Maps API .

不幸的是,不知从何而来,我的一些用户以及我自己的手机都遇到了这个问题。另一方面,对于其他用户来说,它似乎工作得很好。

  • 此问题仅出现在我的应用中的 map 上。

  • 我已尝试在自己的手机上清理 Google 服务的缓存 - 仍然没有。

  • 在我的模拟器上运行良好。

  • 我在整个互联网上进行了搜索,但没有找到一个可行的解决方案。

  • 最重要的部分是:我发现的大多数解决方案都是需要在特定设备上完成的,例如清理缓存然后重新启动手机。但是,当我们谈论发生并伤害了我的大部分用户的问题时 - 必须有一个我可以使用的解决方案,以便我自己一次帮助他们,而不需要他们采取一些行动在他们自己的手机上。

否则,他们会非常沮丧,并且会让他们中的一些人卸载我的应用程序,因为什么?与我无关的错误?直到大约两天前,一切都运行良好,从那以后我根本没有对我的应用程序进行任何更改......所以......为什么?

最佳答案

许多人在 Google 问题跟踪器中报告了此错误。最新的 Play Services 更新至 12.6.73 版似乎对各种华为设备造成了严重影响。显然,谷歌方面发生了一些变化,他们目前正在调查发生了什么。

在以下错误中跟踪该问题:

Authorization Failure in Google Maps Android API v2 (Google Play Services 12.6.73, Huawei devices)

为错误加注星标并关注 Google 工程师的消息。


2018 年 5 月 15 日更新

来自错误的一些消息

Have just got off the phone to Google and Huawei. Huawei seem to be admitting responsibility. They told me there is an EMUI update due in 1 to 2 weeks that should fix "all google maps issues".

还有啊...@google.com 状态

Google has been able to reproduce the problem on a physical device and is now focusing on addressing the root cause through either a fix or other mitigation.

看来谷歌和华为必须一起研究这个问题才能提供一个永久的解决方案。

2018 年 5 月 16 日更新

Google 在错误中发布了以下消息

In collaboration with Huawei, Google engineers have identified the root cause of this issue as an unexpected change to the filesystem permissions. The issue can impact any Android app on a Huawei device which renders a Google map.

Our engineers are preparing a new version of Google Play Services which should resolve the problem. It will be targeted to devices running Android 7.0 Nougat, or higher. We will post another update with the status of the rollout.

Thanks for your patience.

更新 2018-05-17

来自 Google 的好消息

We are pleased to report that a beta version of Google Play Services is ready. We believe this version mitigates the issue on Huawei devices running Android 7.0 Nougat, or higher. An important caveat is that each time the device is rebooted, you will need to wait about one minute before launching the affected applications.

Starting today at midnight (Pacific Time), the beta will be rolled-out to a segment of the community that has signed-up for the Google Play Services Public Beta Program. It will ramp to increasing segments of the beta audience over the next few days. We invite you to join the beta program at https://developers.google.com/android/guides/beta-program to obtain an early release of this and future versions of Google Play Services. Once beta testing is complete it will be rolled out in stages to all users.

2018 年 5 月 18 日更新

As a follow-up to our last update (comment#342), we believe this issue is fixed in Google Play Services version 12.6.85. If you are still encountering the problem, please ensure your device has this version installed.

As previously noted, there can be a delay (usually less than one minute) between the time the OS is finished booting and Google Play Services starts. If you launch one of the affected apps during this window, it may not render a map. If this happens, re-launch the app after a minute or so. Subsequent launches of the app should succeed every time.

最终更新 2018-05-22

As of 10:00 AM (PDT) on May 21, 2018, Google Play Services version 12.6.85 was pushed to 100%, following the initial beta rollout. We believe this resolves the Google Play Services issue on all impacted Huawei devices.

Huawei is working on a longer term solution which is beneficial to its users and developers.

We apologize for this incident and the impact it may have caused. We are conducting an internal investigation of this issue and will make appropriate improvements to our systems to help prevent future recurrence. Stay tuned for an Incident Report.

关于android - "Google Play services are updating"发布时出错,不是模拟器(Google Play Services 12.6.73,华为设备),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50313967/

相关文章:

android - 自定义EditText settext不设置文本

android - View 或 ViewModel 是否负责将模型中的数据转换为在 UI 中呈现?

android - 使用新的 API 21 获取相机预览

android - 如何让按钮看起来像一个列表

java - Eclipse : adt was unable to instantiate class com. android.ide.eclipse.adt.internal.editors.common.CommonXmlEditor

javascript - jQuery 对话框窗口内的 Google map JavaScript API

iphone - 通过链接到 Google map (以 KML 作为查询)打开 iPhone map 应用程序

Java 到 Kotlin 的转换

java - Google Maps API 显示位置,但不居中

android - SQLite 数据库不在 Android 设备管理器中