1

当我下载并为 AVD 选择“N”(API = 24)时,我在右下角看到以下消息:

考虑使用带有 Google API 的系统映像来启用 Google Play 服务的测试。

这张图还没有吗?还是我错过了什么?我还没有在 SDK 管理器中看到它。

在此处输入图像描述

4

2 回答 2

3

从 SDK Tools 25.1.7 和 Intel x86 Atom_64 System Image Rev. 6 开始,Google API 似乎不再有单独的模拟器镜像 - 相反,普通模拟器镜像现在默认包含 Google API。因此,创建 AVD 时“建议”部分中显示的消息似乎是旧的/不正确的。

通过选择 Nougat / API Level 24 / x86_64 / Android 7.0,我能够运行这个项目(使用gradlew installObaGoogleDebug),该项目需要 Google Play Services 用于地图和其他项目。

在此处输入图像描述

编辑 2016 年 11 月 3 日

看来这是模拟器图像的临时问题。从 SDK Tools 25.2.2 和 Intel x86 Atom_64 System Image Rev. 7 开始,当我尝试在上面创建的同一个模拟器镜像(API 级别 24)上运行同一个应用程序时,它现在显示“OneBusAway 依赖于 Google Play 服务,您的设备不支持该功能”。

但是,现在似乎有一个 API 级别 25 (Android 7.1.1) 仿真器可下载,其中包含 ABI x86_64,它明确包含 Google API - 请参见下面红色圈出的区域(请注意,更新消息似乎仍然是错误的出现):

在此处输入图像描述

于 2016-08-31T15:25:25.697 回答
1

I had the same issue recently, I think it's probably a bug with the tool.

I was able to solve it by downloading the x86_64 version, and then it allowed me to use both the N x86 and N x86_64 emulator images.

于 2016-08-20T21:28:52.407 回答