如何使用Android创建AVD& (7.0)与谷歌API? [英] How to create AVD with Android & (7.0) with Google APIs?

查看:2453
本文介绍了如何使用Android创建AVD& (7.0)与谷歌API?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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


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


该图像不可用吗?或者我错过了什么?我没有在SDK Manager中看到它。





我能够运行



编辑2016年11月3日



看起来这是模拟器映像的临时问题。从SDK Tools 25.2.2和Intel x86 Atom_64 System Image Rev. 7开始,当我尝试在上面创建的相同模拟器映像(API Level 24)上运行相同的应用程序时,它现在说OneBusAway依赖于Google Play服务,这在你的设备上不被支持。然而,它看起来像现在有一个API Level 25(Android 7.1.1)模拟器w / ABI x86_64可供下载它确实明确地包含了Google API--请参阅下面以红色圈出的区域(请注意,更新消息似乎仍然出现在其中):


When I downloaded and select "N" (API = 24) for the AVD, I see the following message on bottom right:

Consider using a System Image with Google APIs to enable testing with Google Play Services.

Is this image not available yet? or am I missing something? I dont see it in the SDK Manager yet.

解决方案

As of SDK Tools 25.1.7 and Intel x86 Atom_64 System Image Rev. 6, it appears that there is no longer a separate emulator image for the Google APIs - instead, the normal emulator image now includes the Google APIs by default. So, the message shown in the "Recommendation" section when creating an AVD appears to be old/incorrect.

I was able to run this project (using gradlew installObaGoogleDebug), which requires Google Play Services for maps and other items, by selecting Nougat / API Level 24 / x86_64 / Android 7.0.

EDIT Nov. 3rd 2016

It appears this was a temporary issue with the emulator image. As of SDK Tools 25.2.2 and Intel x86 Atom_64 System Image Rev. 7, when I try to run the same app on the same emulator image (API Level 24) I created above, it now says "OneBusAway relies on Google Play Services, which is not supported on your device".

However, it looks like there is now an API Level 25 (Android 7.1.1) emulator w/ ABI x86_64 available for download that does explictly include the Google APIs - see area circled in red below (note that the update message still seems to erronouesly appear):

这篇关于如何使用Android创建AVD& (7.0)与谷歌API?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆