354

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?

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
chengbo
  • 5,789
  • 4
  • 27
  • 41

7 Answers7

441

I just did the same. If you look in the "Android SDK Manager" in the "Android 4.0 (API 14)" section you'll see a few packages. One of these is named "ARM EABI v7a System Image".

This is what you need to download in order to create an Android 4.0 virtual device:

The Android SDK download system

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Matthew Rudy
  • 16,724
  • 3
  • 46
  • 44
  • 1
    That's reslove my problem, thank you @Matthew. The new image folder is now at D:\android\android-sdk-windows\system-images\android-14. – chengbo Oct 19 '11 at 06:48
  • 31
    I'm just going to add a additional point that I ran into. Even if you download the AVD Manager that is external to eclipse and says you have it installed, you have to go into eclipse with the AVD Plugin and re-install it as well. Have to 2 it twice. I ran into this error when going through the setup steps even though I had the ARM EABI installed external from eclipse. – haju Dec 01 '11 at 00:34
  • 3
    My issue was the same as @haju my external SDK had the ARM v7a System image installed but the one in Eclipse did not. Thanks @haju! – Jeremy Battle Dec 26 '11 at 18:36
  • 7
    Every time I update or install the Android SDK, there is some problem. You would think that Google would have figured out how to iron out the install process by now. Then again, it's not like installing MS's or Apple's tools is that much better. – Brian Dec 30 '11 at 14:50
  • 4
    damn! i skipped only that package. – Rakesh Juyal Dec 31 '11 at 15:02
  • hey, i skipped that package too – curiousguy Feb 25 '12 at 13:12
  • 6
    How many MBs of data do I need to download to test one single hello world application? – Salman A Apr 13 '12 at 15:20
  • I have had the same problem as haju. I have Android SDK in `c:\Program Files\Android\android-sdk\ ` and the Eclipse has it's own Android SDK set to `c:\Users\Martin\android-sdks\ `. I dont get this, but it doesnt matter. I strictly followed instructions from google's android site and got this. Not a big deal, but annoying. I lost about two hours for this. – Martin Berger Apr 27 '12 at 14:56
  • I had all this installed, still didn't work, I had to select an option for the CPU/ABI and then it installed. – Greg McNulty Sep 14 '12 at 04:22
17

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.

Vishal Pawar
  • 4,324
  • 4
  • 28
  • 54
John
  • 6,433
  • 7
  • 47
  • 82
9

This site Android Create AVD shows you how to install the latest version of the Android SDK and AVD version 4 in Eclipse with video and screenshots if you're still stuck?

Community
  • 1
  • 1
RusHughes
  • 1,191
  • 2
  • 12
  • 17
6

I had a similar problem but using IntelliJ IDEA rather than Eclipse. I already had the ARM EABI installed, but I still got the error.

For IntelliJ IDEA, it appears you also have to create an AVB first before running the emulator, so to do this you must just go into Android SDK Manager and create a new AVB. This should solve your problem... Please make sure you have followed the above answer to include the ARM before following these steps.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Codemwnci
  • 54,176
  • 10
  • 96
  • 129
  • Same error using IntelliJ on Mac OSX. 1. Confirm ARM EABI is installed 2. Tools->Android->AVD Manager-> Create new AVD 3. Run->Edit Configurations->Android Application or Android Tests -> Emulator (radio button) -> Select your newly created AVD – Ted Spradley Apr 13 '14 at 18:43
6

You can also get this problem if you have your Android SDK version controlled. You get a slightly different error:

Unable to find a 'userdata.img' file for ABI .svn to copy into the AVD folder.

For some reason, the Android Virtual Device (AVD) manager believes the .svn folder is specifying an application binary interface (ABI). It looks for userdata.img within the .svn folder and can't find it, so it fails.

I used the shell extension found in the responses for the Stack Overflow question Removing .svn files from all directories to remove all .svn folders recursively from the android-sdk folder. After this, the AVD manager was able to create an AVD successfully. I have yet to figure out how to get the SDK to play nicely with Subversion.

Community
  • 1
  • 1
Jeff Lamb
  • 5,755
  • 4
  • 37
  • 54
1

If you installed the system image and still get this error, it might be that the Android SDK manager did not put the files in the right folder for the AVD manager. See an answer to Stack Overflow question How to create an AVD for Android 4.0.3? (Unable to find a 'userdata.img').

Community
  • 1
  • 1
personne3000
  • 1,780
  • 3
  • 16
  • 27
1

This answer is for creating AVD in Android Studio.

  1. First click on AVD button on your Android Studio top bar.

image 1

  1. In this window click on Create Virtual Device

image 2

  1. Now you will choose hardware profile for AVD and click Next.

image 3

  1. Choose Android Api Version you want in your AVD. Download if no api exist. Click next.

image 4

  1. This is now window for customizing some AVD feature like camera, network, memory and ram size etc. Just keep default and click Finish.

image 5

  1. You AVD is ready, now click on AVD button in Android Studio (same like 1st step). Then you will able to see created AVD in list. Click on Play button on your AVD.

image 6

  1. Your AVD will start soon.

image 7

Khemraj Sharma
  • 57,232
  • 27
  • 203
  • 212