简体   繁体   中英

How to test Google Maps v2 on Android emulator API level 17?

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?

在此处输入图片说明

My virtual device configuration:

在此处输入图片说明

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

在此处输入图片说明

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

在此处输入图片说明

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

在此处输入图片说明

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

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