android - 在模拟器中更新 Google Play 服务

标签 android android-studio android-emulator google-play google-play-services

我在 Google Play 上遇到过很多这样的问题,我使用的是 Android 4.2.2 API 17

我的应用需要 Google play services 8.1,它编译良好,当它在模拟器上运行时显示消息 '您需要更新您的 Google play services'

当我点击更新时没有任何反应,

如何在不下载任何最新 API 版本的情况下更新 Google Play 服务?

最佳答案

2017 年 12 月 18 日更新

您可以通过模拟器中的 Play 商店应用更新 Google Play 服务,就像使用 API 24 在物理 Android 设备上一样。

检查 Emulator new features added来自 Android Studio v 3.0 的稳定更新

Google Play Support - From Google : We know that many app developers use Google Play Services, and it can be difficult to keep the service up to date in the Android Emulator system images. To solve this problem, we now offer versions of Android System Images that include the Play Store app. The Google Play images are available starting with Android Nougat (API 24). With these new emulator images, you can update Google Play Services via the Play Store app in your emulator just as you would on a physical Android device. Plus, you can now test end-to-end install, update, and purchase flows with the Google Play Store.


Quick Boot - Quick Boot allows you to resume your Android Emulator session in under 6 seconds

Android CTS Compatibility

Performance Improvements - With the latest versions of the Android Emulator, we now allocate RAM on demand, instead of allocating and pinning the memory to the max RAM size defined in your AVD.

Virtual sensors

Wi-Fi support

GPS location and Many more...

将此SDK Build-Tools 和Android Emulator 更新到最新版本,此警告消息将不再出现,

Settings --> Android SDK --> SDK Tools(tab) --> Android SDK Build-Tools

enter image description here

关于android - 在模拟器中更新 Google Play 服务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35476182/

相关文章:

android - Android 上有某种 ASLR 保护吗?

android - 如何在 Android 上创 build 置页面?

android - 无法使用 Holoeverywhere 中的 ActionBarCompat 将 ActionView 添加到操作栏

android - android 上的新遗迹 import com.newrelic.agent.android.NewRelic;未找到

android - com.facebook.react:react-native:+依赖关系无法在Windows上的Android Studio中编译

performance - Android Studio 性能缓慢

android - 模棱两可的方法调用。 AppCompactActivity 和 Activity 中的 findViewById(int)

android - 连接 net.sourceforge.jtds.jdbc.Driver 时出错

Android模拟器,用手掌盖住屏幕变暗

java - 在 Android 中保存 JPEG 文件而不丢失像素信息