0
votes

I am building an Android app that has Google Maps v2. The map requires the Google Play services. I want to test the app in the emulator running API level 17 (Android 4.2.2).

I have downloaded the Google API package from the SDK manager. Then I created a virtual device for it. When I start the emulator I am presented with the following error.

Cannot launch AVD in emulator. Output: emulator: This AVD's configuration is missing a kernel file!! Emulator: ERROR: ANDROID_SDK_ROOT is undefined.

What should I do to test Google Maps v2 in Android 4.2.2 emulator?

enter image description here

My virtual device configuration:

enter image description here

1
show your emulator configurationVivek Mishra
you should use images with google api's to test google servicesVivek Mishra
google api'sAndroid 17Vivek Mishra
did emulator using another android version run??Vivek Mishra

1 Answers

1
votes

For sdk 17, you need to download intel x86 Atom System Image with the Google APIs (as you have)

enter image description here

Then Choose x86 Android and create it. It works for me, but will not show maps due to lack of internet connection.

enter image description here

For adk 20 and higher:
When you first select create virtual device, you need to pick an image with the google apis.

enter image description here

So this is the step before the screen shot you've shown.