无法 运行 Google 在应用程序 运行ning 中映射到模拟器中
Unable to run Google map in application running in Emulator
我收到错误消息:
AppName won't run unless you update Google Play services.
Update
模拟器未显示更新 Google Play 服务的选项。
配置
模拟器:
Android 8.1(奥利奥)
Google API Intel x86 Atom 系统映像。
安装如下:
构建工具 27.0.3
Android 模拟器 27.2.0
Google Play 服务(版本 48)
Android Studio 3.1 Canary 9 运行 Ubuntu。
在这个网站上尝试了很多解决方案,但没有成功。
您使用的模拟器具有如图所示的 Playstore。
现在有更好的解决方案:将 AVD 图像与 build-in Google 播放服务一起使用。它将使您能够使用 Google 服务,包括 Google Play。您也可以在没有 re-creating AVD 图像的情况下更新它。
有关更多信息,请查看此 post
您必须拥有包含 Google API 的模拟器。根据项目中使用的 Google Play 服务库的版本,您可能需要包含 Google API 的更高 API 级别的模拟器。
包含 Android 8.0(API 级别 26)和 Google API(Google 播放)的模拟器就足够了。
Like this image
我收到错误消息:
AppName won't run unless you update Google Play services.
Update
模拟器未显示更新 Google Play 服务的选项。
配置
模拟器:
Android 8.1(奥利奥)
Google API Intel x86 Atom 系统映像。
安装如下:
构建工具 27.0.3
Android 模拟器 27.2.0
Google Play 服务(版本 48)
Android Studio 3.1 Canary 9 运行 Ubuntu。
在这个网站上尝试了很多解决方案,但没有成功。
您使用的模拟器具有如图所示的 Playstore。
现在有更好的解决方案:将 AVD 图像与 build-in Google 播放服务一起使用。它将使您能够使用 Google 服务,包括 Google Play。您也可以在没有 re-creating AVD 图像的情况下更新它。
有关更多信息,请查看此 post
您必须拥有包含 Google API 的模拟器。根据项目中使用的 Google Play 服务库的版本,您可能需要包含 Google API 的更高 API 级别的模拟器。 包含 Android 8.0(API 级别 26)和 Google API(Google 播放)的模拟器就足够了。
Like this image