Android SDK中AVD错误:空 [英] Android SDK AVD Error:null

查看:185
本文介绍了Android SDK中AVD错误:空的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试安装了Android SDK到Eclipse中,我无法创建一个新的虚拟设备。我不断收到此错误[2011-05-28十二点05分16秒 - SDK管理器]错误:空。有没有什么办法可以解决这个问题。

When I try installing the Android SDK onto eclipse, I can not create a new virtual device. I keep getting this error [2011-05-28 12:05:16 - SDK Manager] Error: null. Is there any way I can fix this

我如何修复这个问题 在我的工作区中删除所有文件。复位,并开始工作。

How I Fixed This Problem deleted all the files in my workspace. Reset and it started working.

推荐答案

同样在这里在Mac OS X的问题这是我的配置。

same issue here on MAC OS X. Here is my configuration.

bigboy:platform-tools kaffein$ uname -a
Darwin bigboy.home 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun  7 16:32:41 PDT 2011; root:xnu-1504.15.3~1/RELEASE_X86_64 x86_64

的为什么

这是你的〜/ .android / AVD文件夹的权限设置有问题。由于虚拟设备仿真器的设置和配置都写此文件夹中,SDK工具(在这种情况下AVD管理)必须能够在此目录中写入。

The Why

It is a problem with the permission settings of your ~/.android/avd folder. Since virtual device emulator settings and configurations are written in this folder, the SDK tools (avd manager in this case) has to be able to write in this directory.

首先,检查你的〜/ .android /使用ls Unix命令(cd到你的主目录)AVD权限:

First, check your ~/.android/avd permissions using the ls Unix command (cd to your home directory) :

bigboy:~ kaffein$ ls -al .android/
drwxr-xr-x   5 kaffein  staff   170 Jan  5 14:35 .
drwxr-xr-x+ 53 kaffein  staff  1802 Jan  5 21:22 ..
-rw-r--r--   1 root        staff   123 Jan  5 14:08 adb_usb.ini
-rw-r--r--   1 root        staff   131 Jan  5 14:35 androidwin.cfg
drwxr-xr-x   2 root        staff    68 Jan  5 12:48 avd

的AVD文件夹属于root。您可以使用下面的命令更改此文件夹的所有者自己开始。

the avd folder belongs to root. You can begin by changing the owner of this folder to yourself using the following command.

bigboy:~ kaffein$ cd .android/
bigboy:.android kaffein$ sudo chown kaffein:staff *

检查一遍,看你现在的文件夹使用以下命令店主:

check again to see that you are now the owner of the folder using the following command :

bigboy:.android kaffein$ ls -al
total 16
drwxr-xr-x   5 kaffein  staff   170 Jan  5 14:35 .
drwxr-xr-x+ 53 kaffein  staff  1802 Jan  5 21:22 ..
-rw-r--r--   1 kaffein  staff   123 Jan  5 14:08 adb_usb.ini
-rw-r--r--   1 kaffein  staff   131 Jan  5 14:35 androidwin.cfg
drwxr-xr-x   2 kaffein  staff    68 Jan  5 12:48 avd

您应该有类似上面的(当然,kaffein应该是你的用户名)

you should have an output like the one above (of course, kaffein should be your username)

最后,您应当使用下面的命令更改的AVD /文件夹的权限设置:

Finally, you should change the permission settings on the avd/ folder using the following command :

bigboy:.android kaffein$ sudo chmod a+rw avd/

确认你确实更改的设置使用ls -al命令。

check that you actually changed the settings with ls -al command.

bigboy:.android kaffein$ ls -al
total 16
drwxr-xr-x   5 kaffein  staff   170 Jan  5 14:35 .
drwxr-xr-x+ 53 kaffein  staff  1802 Jan  5 21:22 ..
-rw-r--r--   1 kaffein  staff   123 Jan  5 14:08 adb_usb.ini
-rw-r--r--   1 kaffein  staff   131 Jan  5 14:35 androidwin.cfg
drwxrwxrwx   2 kaffein  staff    68 Jan  5 12:48 avd

AVD现在设置为777。

avd is now set to 777.

从Eclipse IDE中,打开AVD管理器并尝试创建一个虚拟设备。 Taaadaaaa !!!!一切都应该工作...

From your Eclipse IDE, open the AVD manager and try to create a virtual device. Taaadaaaa!!!! Everything should work...

我希望它帮助...

这篇关于Android SDK中AVD错误:空的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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