How to create an AVD for Android 4.0

2020-01-25 03:32发布

Android 4.0 is now released. I have just updated my ADT plugin and downloaded the 4.0 SDK. But when I try to create an AVD for Android 4.0, Eclipse tells me 'Unable to find a 'userdata.img' file for ABI armeabi to copy into the AVD folder'.

I found d:\android-sdk-windows\platforms\android-14 missing the 'images' folder which other versions have. This folder may have 'userdata.img' that create an AVD should have.

Where should I to get 'userdata.img', and how do I create an AVD for Android 4.0?

标签: android avd
7条回答
贼婆χ
2楼-- · 2020-01-25 04:10

Another solution, for those of us without an internet connection to our development machine is:

Create a folder called system-images in the top level of your SDK directory (next to platforms and tools). Create subdirs android-14 and android-15 (as applicable). Extract the complete armeabi-v7a folder to these directory; sysimg_armv7a-15_r01.zip (from, e.g. google's repository) goes to android-15, sysimg_armv7a-14_r02.zip to android-14.

I've not tried this procedure offline, I finally relented and used my broadband allowance at home, but these are the target locations for these large sysimg's, for future reference.

I've tried creating the image subdirs where they were absent in 14 and 15 but while this allowed the AVD to create an image (for 15 but not 14) it hadn't shown the Android logo after 15 minutes.

查看更多
登录 后发表回答