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