How to create an AVD for Android 4.0.3? (Unable to

2019-02-08 03:03发布

问题:

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.

回答1:

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".



回答2:

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.



回答3:

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



回答4:

I wrote an installation guide to get Android SDK and Eclipse working together. There are a couple of pitfalls which you may run into especially on Windows with regards to Firewalls. Here it is:

http://testigniter.blogspot.co.uk/2012/06/eclipse-with-android-sdk-installation.html



回答5:

Open SDK manager (run as admin) --> Android 4.1 (API 16) --> ARM EABI v7a system image. Install this.