【问题标题】:Google Play services out of date in emulator of wear [duplicate]磨损模拟器中的Google Play服务已过期[重复]
【发布时间】:2017-08-30 20:56:25
【问题描述】:

我想在 Android Studio 的模拟器中尝试使用 Google Maps Wear Activity 来开发自定义应用。 但是,由于以下错误,普通示例不起作用:

Google Play 服务已过期。需要 11020000 但找到 10298574。

我阅读了以下主题: Google Play services out of date. Requires 11011000 but found 10289574 和 更新了手机的 Google Play。此外,我确认模拟器和 Android Studio 是最新版本。 但是,我无法解决错误并了解如何更新 Google Play for wear。

【问题讨论】:

  • 你能尝试在两个模拟器上使用 Android Nougat 吗?
  • 嗨,@noogui,感谢您的回复!我尝试在两个模拟器上使用 Android Nougat,但没有任何改变。你不知道如何更新android wear 的Google play 服务吗? android wear 的 Google play services 版本是 10.2.89。我认为这是导致此问题的原因。

标签: android google-maps google-play-services wear-os


【解决方案1】:

我可以通过降级 Google Play 服务来解决这个问题。 我使用了以下代码:

compile 'com.google.android.gms:play-services-wearable:10.2.6'
compile 'com.google.android.gms:play-services-maps:10.2.6'

而不是以下代码:

compile 'com.google.android.gms:play-services-wearable:11.0.4'
compile 'com.google.android.gms:play-services-maps:11.0.4'.

最好的问候

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-07-14
    • 2013-07-18
    • 1970-01-01
    • 2015-08-14
    • 2013-07-24
    相关资源
    最近更新 更多