本文介绍了上安装HAXM x86模拟器设置谷歌(谷歌地图SDK)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经得到了虚拟机加速Android模拟器(4.2.2 API 17)采用英特尔HAXM(在Mac上)工作。我使用 - 谷歌地图SDK与新的英特尔Atom x86模拟器 - 但图片

I've gotten a VM accelerated Android emulator (4.2.2, API 17) working using Intel HAXM (on a Mac). I installed the Google Maps SDK using these instructions, which is basically this answer to a previous SO question - Google maps SDK with new Intel Atom x86 emulator - but with pictures.

因此​​,仿真器访问谷歌的API。不过,我需要启用谷歌应用程序的位置访问。这通常是通过在谷歌设置应用,但由于仿真器创建有针对性的API 17(不是谷歌的API 17),地图和谷歌的设置没有安装。

Therefore, the emulator has access to Google APIs. However, I need to enable location access for Google apps. This is usually done through the Google Settings app, but since the emulator was created targeted to API 17 (not Google APIs 17), Maps and Google Settings are not installed.

我在哪里可以找到谷歌设置的.apk文件,以便安装?如果有一种方法来永久保持它在模拟器上(这样-wipe数据不删除)这将是更好的。

Where can I find the .apk for Google Settings in order to install it? It would be even better if there was a way to permanently keep it on the emulator (so that -wipe-data does not delete it).

(我知道我需要启用,因为我是运行到一个较早的问题位置的访问。看我的previous问题。)

(I know I need to enable location access because of a problem I was running into earlier. See my previous question here.)

推荐答案

现在有一个新的x86系统上可用的图像里面有谷歌的API。从SDK管理器上安装它 - 这是根据API 19和所谓的谷歌的API(x86的系统图像)。使用从该映像创建了一个模拟器,你应该找到你所有的谷歌的API,你可以previously只在ARM系统得到的图像(我只测试地图2版,到目前为止,但它的工作)。

There is now a new x86 system image available which has the Google APIs. Install it from the SDK manager - it's under API 19 and called "Google APIs (x86 System Image)". Using an emulator created from that image you should find you have all the Google APIs you could previously only get on ARM system images (I have only tested Maps v2 so far, but it worked).

这篇关于上安装HAXM x86模拟器设置谷歌(谷歌地图SDK)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 16:58