I've tried to implement Google Maps v2 in my Android application, but unfortunately instead of maps I get this message:
Is it possible to run these maps on the Android emulator (Platform 4.2)?
The Google Android Map API is not able to run Google Maps on the Android emulator. You must use an Android device for testing your app. In another case, if you still want to use it through: then it requires installation of separate APK files into the emulator image. Use Google Maps on Emulator.
Use Android Emulator for free. This extension allows you to play your favorite games or using applications from Google Play Store. You just need to add to Chrome our extension and instantly you're able to use your new mobile phone in your browser.
At the moment, referencing the Google Android Map API v2 you can't run Google Maps v2 on the Android emulator; you must use a device for your tests.
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.
...
Execute this in the terminal / cmd
adb -e install com.google.android.gms.apk
adb -e install com.android.vending.apk
Restart the AVD
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.
Please try the following. It was successfully for me.
Steps:
Create a new emulator with this configuration:
Start the emulator and install the following APK files: GoogleLoginService.apk
, GoogleServicesFramework.apk
, and Phonesky.apk
. You can do this with the following commands:
adb shell mount -o remount,yourAvdName -t yaffs2 /dev/block/mtdblock0 /system
adb shell chmod 777 /system/app
adb push GoogleLoginService.apk /system/app/
adb push GoogleServicesFramework.apk /system/app/
adb push Phonesky.apk /system/app/
Links for APKs:
Install Google Play services and Google Maps in the emulator
adb install com.google.android.apps.maps-1.apk
adb install com.google.android.gms-2.apk
sdkmanager->extra->google play service
.google-play-services_lib
from androidsdk\extras\google\google_play_services
.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With