在Android模拟器中运行谷歌地图应用程序 [英] Running google map application on Android Emulator

查看:258
本文介绍了在Android模拟器中运行谷歌地图应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序使用的谷歌地图V2。这个应用程序成功地工作在Android供电设备。我试图运行在Android模拟器相同的应用程序。我的模拟器的目标是谷歌API的API等级18 但这里的问题在模拟器上的应用程序运行,但地图并不在地图上绘制的片段,请参见下图

My application uses Google Maps v2. This application successfully working on Android powered device. I tried to run the same application on Android emulator. The target of my emulator is Google APIs API Level 18 but the problem here is application runs on the emulator but map is not drawing on the map fragment, please see the image below

在logcat中,我可以看到下面的错误

In the logcat I can see following error

Google Maps Android API v2 only supports devices with OpenGL ES 2.0 and above

和下面的警告

eglSurfaceAttrib not implemented

我在清单中加入此功能。

I have added this feature in Manifest

  <uses-feature
    android:glEsVersion="0x00020000"
    android:required="true" />

没有任何人有一个想法如何运行在模拟器上这个简单的应用程序?

Does anybody have an idea how to run this simple application on the emulator ?

在此先感谢。

推荐答案

我终于得到了映射在我的模拟器。我跟着这些步骤去实现它。

I got finally map in my emulator. I followed these steps to achieve it.

  1. 创建AVD并启动模拟器

  1. Create avd and start emulator

转到平台工具路径present在Android SDK和把这些APK在其中的。

Go to platform tools path present in Android SDK and put these apk's in it.

  • com.android.vending-20130716
  • com.google.android.gms-20130716
  • ADB设备
  • 在亚洲开发银行安装com.android.vending-20130716
  • 在亚洲开发银行安装com.google.android.gms-20130716

就是这样。 :) 你可以从下面的链接下载上面的apk

That's it. :) you can download above apk's from following link

<一个href="http://stackoverflow.com/questions/14040185/running-google-maps-v2-on-android-emulator">Running谷歌地图v2的在Android模拟器

这篇关于在Android模拟器中运行谷歌地图应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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