简体   繁体   English

无法创建AVD管理器

[英]Can't create an AVD manager

I have installed the Android Development Tools and Android SDK but I can't create an AVD Manager. 我已经安装了Android开发工具和Android SDK,但是无法创建AVD管理器。 I have tried selecting different options in the Create new Android Device Manager, but when I hit OK nothing happens. 我尝试在“创建新的Android设备管理器”中选择其他选项,但是当我单击“确定”时,没有任何反应。 Console prints these error messages: 控制台显示以下错误消息:

[2014-06-18 22:02:23 - SDK Manager] Error: null

And this, also: 而且这个:

[2014-06-18 22:27:05 - SDK Manager] Warning: Couldn't open file: /Users/eduarddedu/.android/devices.xml (No such file or directory)

I have ARM EABI v7a System Image installed and I am not using any spaces in the name field. 我安装了ARM EABI v7a系统映像,并且名称字段中没有使用任何空格。

I have also tried running monitor.bat as someone suggested; 我也尝试过按照有人建议运行monitor.bat。 the Android Device Manager start-up screen briefly appeared, but then I got an error message saying an error has occurred and 'See the log file: /Users/... Android设备管理器启动屏幕短暂出现,但是随后我收到一条错误消息,指出发生了错误,并且“请参阅日志文件:/ Users / ...

I opened the log file and it says: 我打开了日志文件,上面写着:

java.io.IOException: The folder "/Users/eduarddedu/.android/monitor-workspace/.metadata" is read-only. java.io.IOException:文件夹“ /Users/eduarddedu/.android/monitor-workspace/.metadata”是只读的。

This is really weird because there isn't any folder .android in /Users/eduarddedu. 这真的很奇怪,因为/ Users / eduarddedu中没有任何.android文件夹。 I used ls -a to view hidden files. 我使用ls -a查看隐藏文件。

I don't know if this is relevant but I also discovered that the Android SDK Manager log reports these two errors: 我不知道这是否相关,但我还发现Android SDK Manager日志报告了这两个错误:

Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-2.xml , reason: File not found 无法获取URL https://dl-ssl.google.com/android/repository/addons_list-2.xml ,原因:找不到文件

Failed to fetch URL https://dl-ssl.google.com/android/repository/repository-9.xml , reason: File not found 无法获取URL https://dl-ssl.google.com/android/repository/repository-9.xml ,原因:找不到文件

That's it. 而已。 Thanks a lot for any suggestions. 非常感谢您的任何建议。

Solved, I can create AVDs now. 解决了,我现在可以创建AVD。 To create an AVD, android attempts to write files in the home folder of the current user. 要创建AVD,Android会尝试在当前用户的主文件夹中写入文件。 In my case, the home folder was not writable. 就我而言,主文件夹不可写。 I logged in as root and changed the owner of the home folder from 'staff' to me, using the chown command. 我以root用户身份登录,并使用chown命令将主文件夹的所有者从“ staff”更改为我。 Here is an excellent tutorial on how to do this in a bash shell : gd.tuwien.ac.at/linuxcommand.org/lts0070.html 这是有关如何在bash shell中执行此操作的出色教程:gd.tuwien.ac.at/linuxcommand.org/lts0070.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM