如何为Android 4.0创建AVD

本文翻译自:How to create an AVD for Android 4.0

Android 4.0 is now released. Android 4.0现已发布。 I have just updated my ADT plugin and downloaded the 4.0 SDK. 我刚刚更新了我的ADT插件并下载了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'. 但是当我尝试为Android 4.0创建AVD时 ,Eclipse告诉我'无法为ABI armeabi找到'userdata.img'文件以复制到AVD文件夹中'。

I found d:\\android-sdk-windows\\platforms\\android-14 missing the 'images' folder which other versions have. 我发现d:\\android-sdk-windows\\platforms\\android-14缺少其他版本的'images'文件夹。 This folder may have 'userdata.img' that create an AVD should have. 此文件夹可能具有创建AVD应具有的“userdata.img”。

Where should I to get 'userdata.img', and how do I create an AVD for Android 4.0? 我应该在哪里获得'userdata.img',以及如何为Android 4.0创建AVD?


#1楼

参考:https://stackoom.com/question/WnZM/如何为Android-创建AVD


#2楼

I had a similar problem but using IntelliJ IDEA rather than Eclipse . 我有一个类似的问题,但使用IntelliJ IDEA而不是Eclipse I already had the ARM EABI installed, but I still got the error. 我已经安装了ARM EABI,但我仍然遇到错误。

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. 对于IntelliJ IDEA,您似乎还必须在运行模拟器之前先创建AVB,因此,为此,您必须进入Android SDK Manager并创建新的AVB。 This should solve your problem... Please make sure you have followed the above answer to include the ARM before following these steps. 这应该可以解决您的问题...在执行这些步骤之前,请确保您已按照上述答案包含ARM。


#3楼

此网站Android Create AVD向您展示如何在Eclipse中安装最新版本的Android SDK和AVD版本4,如果您仍然卡住了视频和屏幕截图?


#4楼

You can also get this problem if you have your Android SDK version controlled. 如果您控制了Android SDK版本,也可以解决此问题。 You get a slightly different error: 你得到一个稍微不同的错误:

Unable to find a 'userdata.img' file for ABI .svn to copy into the AVD folder. 无法找到ABI .svn的'userdata.img'文件以复制到AVD文件夹中。

For some reason, the Android Virtual Device (AVD) manager believes the .svn folder is specifying an application binary interface (ABI). 出于某种原因,Android虚拟设备(AVD)管理器认为.svn文件夹指定了应用程序二进制接口 (ABI)。 It looks for userdata.img within the .svn folder and can't find it, so it fails. 它在.svn文件夹中查找userdata.img但找不到它,因此失败。

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. 我使用了Stack Overflow问题的响应中找到的shell扩展从所有目录中删除.svn文件,从android-sdk文件夹中递归删除所有.svn文件夹。 After this, the AVD manager was able to create an AVD successfully. 在此之后,AVD经理能够成功创建AVD。 I have yet to figure out how to get the SDK to play nicely with Subversion . 我还没弄明白如何让SDK与Subversion很好地配合。


#5楼

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. 如果您安装了系统映像但仍然出现此错误,则可能是Android SDK管理器未将文件放在AVD管理器的正确文件夹中。 See an answer to Stack Overflow question How to create an AVD for Android 4.0.3? 查看Stack Overflow问题的答案如何为Android 4.0.3创建AVD? (Unable to find a 'userdata.img') . (无法找到'userdata.img')


#6楼

This answer is for creating AVD in Android Studio. 这个答案是在Android Studio中创建AVD。

  1. First click on AVD button on your Android Studio top bar. 首先单击Android Studio顶部栏上的AVD按钮。

图片1

  1. In this window click on Create Virtual Device 在此窗口中单击“ 创建虚拟设备”

图片2

  1. Now you will choose hardware profile for AVD and click Next. 现在,您将为AVD选择硬件配置文件,然后单击下一步。

图片3

  1. Choose Android Api Version you want in your AVD. 在AVD中选择您想要的Android Api版本。 Download if no api exist. 如果没有api则下载。 Click next. 点击下一步。

图片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. 现在,这是自定义某些AVD功能的窗口,如相机,网络,内存和柱塞尺寸等。只需保持默认值,然后单击完成。

图片5

  1. You AVD is ready, now click on AVD button in Android Studio (same like 1st step). 您已准备好AVD,现在点击Android Studio中的AVD按钮(与第1步相同)。 Then you will able to see created AVD in list. 然后,您将能够在列表中看到创建的AVD。 Click on Play button on your AVD. 单击AVD上的“播放”按钮。

图片6

  1. Your AVD will start soon. 你的AVD很快就会开始。

图片7

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值