简体   繁体   English

Android Google Maps V2无法在模拟器中使用

[英]Android Google Maps V2 not working in Emulator

I have been trying for the last 2 hours now to get the map to work in the emulator on Mac. 我一直在尝试过去的两个小时,以使地图可以在Mac上的模拟器中工作。 I have followed several suggestions on Stack such as this and this I have tried over and over again, are these out of date? 我按照对堆栈的若干建议,如我都试过一遍又一遍,这些都是过时的?

I have done several new projects, fresh virtual devices, cleaned all the time and it's just not working. 我已经完成了几个新项目,新的虚拟设备,并且一直都在清理它,但是它只是无法正常工作。 Any suggestions? 有什么建议么?

I had the same problem as you ask after installing apk files I have successfully run the google map version 2 on Android version 4.2.2 level 17 emulator. 安装APK文件后,我遇到了与您问的问题相同的问题,我已经在Android版本4.2.2级别17模拟器上成功运行了Google Map版本2。 I have spend 2 days to find what is the problem. 我已经花了2天的时间才发现问题所在。

make sure you have updated version of google api with latest updated version. 确保您已使用最新的更新版本更新了google api版本。 and google play service in extra folder of Android Sdk Manager. 和Google Play服务位于Android Sdk Manager的额外文件夹中。

Link To follow all step to start map v2 on emulator: https://blog-emildesign.rhcloud.com/?p=527 链接要执行所有步骤以在模拟器上启动Map v2,请执行以下操作: https : //blog-emildesign.rhcloud.com/?p=527

steps:
1) delete your current AVD or Genymotion emulator
2) create new AVD or Genumotion emulator
    - Device: select Device any
    - Target: choose target as you want but make sure it should be  4.0 or greater
    - CPU: Intel or ARM
    - RAM, Heap, Internal storage, sd card: it should be lower according to your pc specification means if you have good RAM and process then go for the higher as you can.  

you need to install 你需要安装

    three apk files on emulator
    1)  com.android.vending.apk
    2) com.google.android.gms.apk ( above both are given in the link)

    Note: Google play service apk (gms) version should be same as your
    google play service library mention in your code. Check google play
    service library version name and download the same version of apk file

    3) com.google.android.maps

EDIT: 编辑:

if you have successfully install all these on your emulator without failure then you will definitely open google map on emulator. 如果您已成功在模拟器上成功安装所有这些工具,那么您肯定会在模拟器上打开google map。

one more thing I would like to suggest you that version of google play service library that you refer in you project should be same as you install google play service apk file. 我还要向您建议一件事,即您在项目中引用的Google Play服务库版本应与安装Google Play服务apk文件的版本相同。 It is not mandatory but some time you may face the same problem google play service version miss match error. 它不是强制性的,但有时您可能会遇到相同的问题,即Google Play服务版本缺少匹配错误。

I have found some link hope it will help you. 我发现一些链接希望对您有所帮助。 Apk file download link: apk文件下载链接:

For, 对于,

gms: http://uploaded.net/file/bnzl1si4 gms: http//uploaded.net/file/bnzl1si4

vending: http://www.androidfilehost.com/?fid=9390135922294521859 自动贩卖机: http : //www.androidfilehost.com/? fid= 9390135922294521859

Hope it will help you. 希望对您有帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM