Map not getting in emulator android api v2

后端 未结 4 760
轻奢々
轻奢々 2020-11-27 22:28

I want to install my map application in emulator it installed fine but not getting map on it,showing error in log cat like Google Maps Android API v2 only supports devices w

相关标签:
4条回答
  • 2020-11-27 23:02

    Google Maps API V2 require Google Play Services, which can be downloaded from Play Store, but since emulator doesn't have access to Play store, you cant get Play Services there and in turn the maps. At the moment, referencing the Google Android Map Api v2 you can't run google maps v2 on Android emulator; you must use a device for your tests.

    0 讨论(0)
  • 2020-11-27 23:03

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

    1. Create avd and start emulator

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

      • Install com.android.vending.apk (Google Play Store, v.3.10.9)
      • Install com.google.android.gms.apk (Google Play Service, v.2.0.12)
    3. Install these apk's one by one by going to platform tools path by using command prompt(shift+Right click-->open command window here).Follow these commands

      • adb devices
      • adb install com.android.vending.apk
      • adb install com.google.android.gms.apk
    4. Import google-play-services_lib project which is present at project location and add it to your project.(path of lib project:D:\Softwares\android-sdk\extras\google\google_play_services\libproject)
    5. Restart emulator and clean your project and run it through emulator.

    That's it. :)

    enter image description here

    0 讨论(0)
  • 2020-11-27 23:17

    After three days of reading tons and tons of tutorial on how to do this, this is the UP-TO-DATE solution with the UP-TO-DATE files and EASIEST steps to follow.

    Steps. 1. Install genymotion emulator (This is way much faster than the eclipse emulator). All about it is easier. Research on how to start it.

    Download these three apk's ()

    Go to the platform tools folder of your adt bundle instalation folder (your_root_to_your_sdk\sdk\platform-tools). Open the sdk folder and there is the platform tools folder.

    Paste the downloaded apks to the platform tools folder

    Press Shit and right click the mouse, then press "Open command windows here"

    In the cmd type adb devices and hit enter. Then your will use "adb install name_of_the_each_apk" for each of the three apks.

    Open the google play and enter your account, and follow the steps: next, install google play services, open maps, and so on, they will guide you. That's all.

    AS SIMPLE AS THAT.

    0 讨论(0)
  • 2020-11-27 23:21

    People seem to have trouble with the build in emulator and google maps. As an alternative, you could try this 3rd party emulator. People seem to have better luck with it and google maps. And it's supposed to be faster.

    http://www.genymotion.com/

    0 讨论(0)
提交回复
热议问题