Android Studio:获取 Google Play 服务

Android Studio : Get Google Play Services

我想在我的应用程序中使用 Google 地图

但是当我 运行 我的应用程序出现此错误时

This app won't run without Google Play services, which are missing from your phone. GET GOOGLE PLAY SERVICES

我尝试了其他解决方案,例如从 SDK 管理器安装 google api,但没有成功,仍然出现相同的错误。

谁能帮帮我?

看起来你的 device/emulator 没有安装 gapps。

Google Play Services 随 Google 应用程序(称为 gapps)一起提供。可以在这里找到很棒的教程:http://forum.xda-developers.com/showthread.php?t=2528952

对了,用CM11 gapps link。

为了 运行 使用 Google Play 服务的应用程序,您的模拟器或设备必须安装 Google Play 服务。

在 Android SDK 管理器中,您可以安装带有预装 Google Play 服务的模拟器系统映像。

当您在系统上安装了这些后,您就可以创建能够运行您的应用程序的模拟器。

打开 AVD Manager 并创建新的模拟器。确保您使用了一些 Google API 系统映像。