why i cannot create android virtual device?

拟墨画扇 提交于 2019-12-12 05:38:20

问题


this issue is a bit similar to Cannot Create Android Virtual Device, the difference is that i am trying to create AVD on windows rather than ubuntu, one more difference is that i can create android 2.2 and 2.3 AVD without error, but failed to create ADV 4.x, why?

i have sdk and api installed for 4.x, anyhow.

[2012-09-26 13:01:40 - SDK Manager] Warning: Ignoring add-on 'google_apis-10_r02': Unable to find base platform with API level '10'
[2012-09-26 13:01:40 - SDK Manager] Warning: Ignoring add-on 'google_apis-11_r01': Unable to find base platform with API level '11'
[2012-09-26 13:01:40 - SDK Manager] Warning: Ignoring add-on 'google_apis-12_r01': Unable to find base platform with API level '12'
[2012-09-26 13:01:40 - SDK Manager] Warning: Ignoring add-on 'google_apis-13_r01': Unable to find base platform with API level '13'
[2012-09-26 13:01:40 - SDK Manager] Warning: Ignoring add-on 'google_apis-5_r01': Unable to find base platform with API level '5'
[2012-09-26 13:01:40 - SDK Manager] Warning: Ignoring add-on 'google_apis-6_r01': Unable to find base platform with API level '6'
[2012-09-26 13:01:40 - SDK Manager] Warning: Ignoring add-on 'google_apis-7_r01': Unable to find base platform with API level '7'
[2012-09-26 13:02:16 - SDK Manager] Unable to find a 'userdata.img' file for ABI armeabi to copy into the AVD folder.

回答1:


You have to install ARM EABI v7a System Image for creating emulators from Android 4.0 onwards. You can install the image using Android SDK Manager




回答2:


@rIHaN JiTHiN already gave the answer. But as a follow up I put a screen capture to show what we are talking of.

In the given screen capture I haven't installed the "ARM EABI v7a System Image" for Android 4.2, whereas I have installed "ARM EABI v7a System Image" and "Intel x86 Atom System Image" for Android 4.1.2

EDIT/FOLLOW UP

What I show in the picture is for Android 4.2, but is true for every versions of Android.

If you are developing for MIPS CPU devices you have to install the "MIPS System Image".

Finally, you could have to restart eclipse to see the new installed images. But for me, I always restart a software which I updated to be sure it takes into account all the modifications, and I assume it is a good practice to do so.



来源:https://stackoverflow.com/questions/12594898/why-i-cannot-create-android-virtual-device

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!