本文介绍了“启动用于AVD的仿真器"然后恐慌:无法打开..."的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是android应用开发人员的新手.当我创建一个新的AVD时,单击该AVD上的开始":我得到以下信息:

I'm new to android app dev. When I created a new AVD, when I click start on this AVD: I get the following:

Starting emulator for AVD 'Nexus_4_16_AVD'
PANIC: Could not open: Nexus_4_16_AVD

推荐答案

这是ADT插件中的错误.要解决此问题,请使用NTFS符号链接.

This is a bug in the ADT Plugin. For a workaround until it is fixed use a NTFS symbolic link.

我有一个用于Windows 7的C:驱动器和一个用于我所有工作和数据的D:驱动器.安装Windows 7后,我将所有特殊文件夹从C:\ Users \ John Doe重定位到D:\ John Doe.当ADT插件和配置文件位于D:时,ADT插件正尝试从C:加载仿真器(PANIC:无法打开等). NTFS可以使用NTFS符号链接来获取要从D:读取的ADT插件.在C:\ Users \ John Doe(显然使用您的用户名)中打开命令提示符,使用mklink命令.

I have a C: drive for windows 7 and a D: drive for all my work and data. After installing windows 7 I relocate all my special folders from C:\Users\John Doe to D:\John Doe. The ADT Plugin is trying to load the emulator from C: when it and the configure files are on D: (PANIC: Could not open etc.). NTFS can get the ADT Plugin to read from D: using a NTFS symbolic link. Open a command prompt in C:\Users\John Doe (obviously use your user name), use the mklink command.

 mklink /J "C:\Users\John Doe\\.android" "D:\John Doe\\.android"

现在,当ADT插件尝试在C:上引用.android时,NTFS会将请求发送到D :,并且模拟器可以正确启动.

Now when the ADT plugin is trying to reference .android on C:, NTFS sends the request to D: and the emulator starts correctly.

原始来源

OR

如果不是路径问题,则:

If it is not a path issue, then:

创建一个名为:ANDROID_SDK_HOME的环境变量并将其设置为C:\Users\Administrator Open Eclipse > Window > Preferences并单击Run/Debug并进行字符串替换添加一个名为:user.home的新变量并将其设置为C:\Users\Administrator创建一个AVD并运行它

Create a environment variable called: ANDROID_SDK_HOME and set it to C:\Users\Administrator Open Eclipse > Window > Preferences and click in Run/Debug and String Substitution Add a new variable called: user.home and set it to C:\Users\Administrator Create an AVD and run it.

原始来源

这篇关于“启动用于AVD的仿真器"然后恐慌:无法打开..."的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 01:01
查看更多