Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create an AVD for Android 4.0.3? (Unable to find a 'userdata.img')

I'm trying to create my first AVD for Android 4.0.3 following the tutorials, but I'm getting the error message:

[2012-05-09 10:46:29 - SDK Manager] Unable to find a 'userdata.img' file for ABI armeabi to copy into the AVD folder.

My attempts to solve:

  • I was trying with the Android 4.0, now I updated to the 4.0.3 and the problem is the same.
  • I reinstalled the Eclipse plugin twice with 4.0 and twice with 4.0.3, and the behavior doesn't change.
  • I downloaded the Eclipse for Java again, to another folder, and installed the plugin. The behavior is the same.

The file <sdk>/system-images/android-15/armeabi-v7a/userdata.img exists, it's a 4mb file, read-only.

Related question: How to create an AVD for Android 4.0 - the answer didn't worked here.

I'm running Eclipse Indigo Service Release 2 Build id: 20120216-1857 on Ubuntu 11.10.

like image 683
The Student Avatar asked May 09 '12 13:05

The Student


3 Answers

Make sure you have all of the latest files installed. Go to the SDK manager in Eclipse (WINDOW/SDK Manager). Make sure all of the files show "installed".

like image 52
wyoskibum Avatar answered Sep 22 '22 15:09

wyoskibum


I got this problem when trying to setup an emulator for Android 2.3.3 (API 10).

I had two platforms installed in my SDK: API 10 and 17. I noticed that the userdata.img files for these platforms were located as below:

system-images/
  android-17/
    x86/
      userdata.img
  android-10/
    x86/
      images/
        x86/
          userdata.img

So as you can see, the emulator images for the android-10 platform were probably not put in the right folder.

Anyway, in short: if you are in the same situation, just move the contents of the android-[version]/x86/images/x86/ folder to the android-[version]/x86/ folder. It worked for me.

Obviously, if you are trying to launch an ARM image, do the same thing with the armeabi folder instead of the x86 folder.

like image 44
personne3000 Avatar answered Sep 24 '22 15:09

personne3000


i think you also have to download ARM EABI v7a System Image under Android 4.1

like image 43
Qasim Chauhan Avatar answered Sep 23 '22 15:09

Qasim Chauhan