Running Google Maps v2 on the Android emulator

前端 未结 11 1933
一整个雨季
一整个雨季 2020-11-22 10:32

I\'ve tried to implement Google Maps v2 in my Android application, but unfortunately instead of maps I get this message:

11条回答
  •  青春惊慌失措
    2020-11-22 11:07

    For those who have updated to the latest version of google-play-services_lib and/or have this error Google Play services out of date. Requires 3136100 but found 2012110 this newer version of com.google.android.gms.apk (Google Play Services 3.1.36) and com.android.vending.apk (Google Play Store 4.1.6) should work.

    Test with this configuration on Android SDK Tools 22.0.1. Another configuration that targets pure Android, not the Google one, should work too.

    • Device: Galaxy Nexus
    • Target: Android 4.2.2 - API Level 17
    • CPU/ABI: ARM (armeabi-v7a)
    • Checked: Use Host GPU

    ...

    1. Open the AVD
    2. Execute this in the terminal / cmd

      adb -e install com.google.android.gms.apk
      adb -e install com.android.vending.apk
      
    3. Restart the AVD

    4. Have fun coding!!!

    I found this way to be the easiest, cleanest and it works with the newest version of the software, which allow you to get all the bug fixes.

提交回复
热议问题