0

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

Evgenii
  • 36,389
  • 27
  • 134
  • 170

1 Answers1

1

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.

  • I can not see images named like that, see my SDK manager screenshot. The question was specifically about API Level 17, not 21. – Evgenii Jan 04 '16 at 06:30
  • Thanks for your effort, I am launching the x86 Atom emulator. On launch the app shows the button "Get Google Play Services". I guess it does not have them installed. When I tap the button the app crashes with following exception `No Activity found to handle Intent { act=android.intent.action.VIEW dat=market://details?id=com.google.android.gms`. – Evgenii Jan 05 '16 at 06:35
  • The x86 Atom emulator does not have Google Play Services installed. Google Play Services are not listed in Settings > Apps either. – Evgenii Jan 05 '16 at 06:59