如何为 Android 4.0.3 创建 AVD?(无法找到“userdata.img”)

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/10517555/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-20 04:02:18  来源:igfitidea点击:

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

androidandroid-emulatoravd

提问by Tom Brito

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

我正在尝试按照教程为 Android 4.0.3 创建我的第一个 AVD ,但我收到错误消息:

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

[2012-05-09 10:46:29 - SDK Manager] 无法找到 ABI armeabi 的“userdata.img”文件以复制到 AVD 文件夹中。

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.
  • 我正在尝试使用 Android 4.0,现在我更新到了 4.0.3,问题是一样的。
  • 我使用 4.0 重新安装了 Eclipse 插件两次,使用 4.0.3 重新安装了两次,并且行为没有改变。
  • 我再次将 Eclipse for Java 下载到另一个文件夹,并安装了插件。行为是一样的。

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

该文件<sdk>/system-images/android-15/armeabi-v7a/userdata.img存在,它是一个 4mb 文件,只读。

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

相关问题How to create an AVD for Android 4.0- 答案在这里不起作用。

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

我在 Ubuntu 11.10 上运行 Eclipse Indigo Service Release 2 Build id: 20120216-1857。

采纳答案by wyoskibum

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

确保您安装了所有最新文件。转到 Eclipse 中的 SDK 管理器(WINDOW/SDK Manager)。确保所有文件都显示“已安装”。

回答by personne3000

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

我在尝试为 Android 2.3.3 (API 10) 设置模拟器时遇到了这个问题。

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

我的 SDK 中安装了两个平台:API 10 和 17。我注意到userdata.img这些平台的文件如下所示:

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-10platform were probably not put in the right folder.

如您所见,android-10平台的模拟器图像可能没有放在正确的文件夹中。

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.

无论如何,简而言之:如果您处于相同的情况,只需将android-[version]/x86/images/x86/文件夹的内容移动到android-[version]/x86/文件夹中即可。它对我有用。

Obviously, if you are trying to launch an ARM image, do the same thing with the armeabifolder instead of the x86folder.

显然,如果您尝试启动 ARM 映像,请对armeabi文件夹而不是x86文件夹执行相同的操作。

回答by Qasim Chauhan

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

我认为您还必须在Android 4.1下下载ARM EABI v7a System Image

回答by Adamantus

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:

我写了一个安装指南来让 Android SDK 和 Eclipse 一起工作。关于防火墙,您可能会遇到一些陷阱,尤其是在 Windows 上。这里是:

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

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

回答by krishna

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

打开 SDK 管理器(以管理员身份运行)--> Android 4.1 (API 16)--> ARM EABI v7a 系统映像。安装这个。