Android的 - 无法找到一个AVD与目标兼容“的Andr​​oid 1.6”错误 [英] Android - Failed to find an AVD compatible with target 'Android 1.6' error

查看:419
本文介绍了Android的 - 无法找到一个AVD与目标兼容“的Andr​​oid 1.6”错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想运行一个Hello World应用程序为Android的第一次,但我不断收到一个:

I'm trying to run a Hello World app for Android for the first time, but I keep getting a:

Failed to find an AVD compatible with target 'Android 1.6'

当我试图创建一个AVD错误。

error when I try to create an AVD.

我曾尝试以解决该问题的解决方案如下:

I have tried the following solution in order to fix the issue:

  • 经过,我已经安装了正确的软件包。我的Andr​​oid SDK工具修订11,Android的SDK平台工具版本4,SDK平台4,7,8,9,10,11,12,Android的兼容性包。
  • 在我检查了我的PATH环境变量指向正确的地方的工具和平台工具的文件夹。
  • 打得四处设置项目在不同的平台上水平等。
  • 在暂时关掉我的病毒防护

我总是得到一个类似的错误消息,虽然。

I always get a similar error message, though.

这是我在Eclipse控制台中获得,当我尝试推出。

This is what I get in the eclipse console when I try to launch.

[2011-05-28 11:43:47 - HelloAndroid] ------------------------------
[2011-05-28 11:43:47 - HelloAndroid] Android Launch!
[2011-05-28 11:43:47 - HelloAndroid] adb is running normally.
[2011-05-28 11:43:47 - HelloAndroid] Performing com.androidbook.hello.HelloActivity activity launch
[2011-05-28 11:43:47 - HelloAndroid] Failed to find an AVD compatible with target 'Android 1.6'.
[2011-05-28 11:44:27 - SDK Manager] could not create file 'C:\Windows\system32\config\systemprofile\.android\avd\Gingerbread.avd\sdcard.img', aborting...
[2011-05-28 11:44:27 - SDK Manager] could not write to 'C:\Windows\system32\config\systemprofile\.android\avd\Gingerbread.avd\sdcard.img', aborting...
[2011-05-28 11:44:27 - SDK Manager] Failed to create the SD card.
[2011-05-28 11:45:09 - HelloAndroid] Still no compatible AVDs with target 'Android 1.6': Aborting launch.
[2011-05-28 11:45:09 - HelloAndroid] Performing com.androidbook.hello.HelloActivity activity launch
[2011-05-28 11:45:11 - HelloAndroid] Launch canceled!

我发现我的包安装在:

I notice that my packages are installed at:

C:\Program Files\Android\android-sdk

因为那是什么在Android SDK和AVD管理器顶部说,在选择安装的软件包选项。但是,当我选择了虚拟设备的选择,位置是在寻找虚拟设备中:

because thats what is says at the top of the Android SDK and AVD manager when the Installed Packages option is selected. But when I choose the Virtual Devices option, the location it is looking for the virtual devices in:

C:\Windows\system32\config\systemprofile\.android\avd. 

在我下面有他的SDK和AVD管理器截图寻找虚拟设备的书

In the book that I'm following there is a screenshot of his SDK and AVD Manager looking for the virtual devices in a

C:\Documents and Setting\Dave\.android\avd

文件夹。它将使任何区别对我来说,如果我改变那里的经理寻找这个东西?谁能告诉我怎么能做到这一点?

folder. Will it make any difference to me if I change where the Manager looks for this stuff? Can anyone tell me how I can do that?

感谢有这方面的帮助。我只是想获得开裂!

Grateful for any help on this. I just want to get cracking!

感谢

推荐答案

在为此我解决了通过以下方法:

In this end I solved in by the following method:

我设置一个新的环境变量ANDROID_SDK_HOME到同一个位置我家的环境变量,它是C:\用户\ MYNAME(这个建议是由在的这个一文)

I set a new environment variable ANDROID_SDK_HOME to the same location as my HOME environment variable which is C:\Users\MyName (This was suggested by one of the commenters in this article)

这改变了Android SDK和AVD经理一直在寻找虚拟设备的位置。当我增加了一个新的设备的话,我似乎并没有得到任何的问题(其实我在启动的过程中这样做我应用程序,其实我不得不关掉一切并重新启动,以便它可以找到,我刚刚创建的AVD)。

This changed the location that the Android SDK and AVD manager was looking for virtual devices in. When I added a new device then, I didn't seem to get any problem (Actually as I did this in the process of launching my app, I actually had to close everything down and relaunch so it could find the AVD that I had just created).

我很惊讶在AVD实际花费多长时间完全防火和安装我的10号线的应用程序。只花了大约5分钟,所以我可以看到Hello World。

I'm amazed at how long the AVD actually takes to fully fire-up and install my 10 line app. It literally took about 5 minutes so I could see "Hello World".

不过......胜利是我的!

Still... victory is mine!

这篇关于Android的 - 无法找到一个AVD与目标兼容“的Andr​​oid 1.6”错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆