简体   繁体   中英

Google Maps v2 doesn't work on Android Emulator

I have followed all steps from http://saleh360.blogspot.in/2012/12/android-running-google-maps-api-v2_12.html but I am not able to make google maps v2 work on android emulator.

When I run my project I get the message: This app won't run unless you update Google Play services, along with the button "Update". If I update, it takes me to the Google Play and cannot see the map of my application.

Moreover when I try to import " <android-sdk-folder>/extras/google/google_play_services/samples/maps ", I cannot locate the folder maps in my pc, although I got the latest version of Google play services

Has anyone else faced the same problem and found a solution?

I've created a (German) description how to get it working:

http://linuxchef.blogspot.de/2013/05/google-maps-api-v2-im-android-emulator.html

You basically need an emulator with at least API level 9 and no Google APIs. Then you'll have to get the APKs from a rooted device:

adb -d pull /data/app/com.android.vending-2.apk adb -d pull /data/app/com.google.android.gms-2.apk

and install them in the emulator:

adb -e install com.android.vending-2.apk adb -e install com.google.android.gms-2.apk

You can even run the native Google Maps App, if you have an emulator with at least API level 14 and additionally install com.google.android.apps.maps-1.apk

Have fun.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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