Android模拟器无法启动,'错误的文件夹的原因 [英] Android Emulator can't start, 'cause of wrong folder

查看:126
本文介绍了Android模拟器无法启动,'错误的文件夹的原因的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚开始使用Eclipse和ADT,我有一些问题,Android模拟器无法启动:

I'm just starting to use Eclipse and ADT and I have some issues, the Android Emulator don't start :

[2011-07-10 15:32:25 - Android_FirstApp] ------------------------------
[2011-07-10 15:32:25 - Android_FirstApp] Android Launch!
[2011-07-10 15:32:25 - Android_FirstApp] adb is running normally.
[2011-07-10 15:32:25 - Android_FirstApp] Performing samr1.Android_FirstApp.Android_FirstAppActivity activity launch
[2011-07-10 15:32:25 - Android_FirstApp] Automatic Target Mode: launching new emulator with compatible AVD 'Android2.1'
[2011-07-10 15:32:25 - Android_FirstApp] Launching a new emulator with Virtual Device 'Android2.1'
[2011-07-10 15:32:26 - Emulator] PANIC: Could not open: C:\Users\Sam\.android/avd/Android2.1.ini

的路径是不正确的,尽管在Android2.1.ini路径是正确的。用户文件夹位于在其他磁盘。

The path isn't correct, though the path in Android2.1.ini is correct. The User folder is located in an another disk.

我如何修改Android模拟器的启动路径?我找不到在哪里。

How can I modify the start path of Android Emulator ? I can't find where.

感谢

编辑:
我发现,图形AVD管理器创建C内AVD目录:在Windows 7 \\用户\\ .android \\:
<一href=\"http://developer.android.com/guide/developing/devices/managing-avds-cmdline.html#DefaultLocation\">Default AVD的位置文件

但是,使用命令行不起作用。
让我感动我的AVD文件C:\\用户\\ SAM \\,现在,它的工作原理

But using Command Line doesn't work. So i moved my AVD files in C:\Users\Sam\ and now it works.

推荐答案

这是在ADT插件的错误。对于解决办法,直到它是固定使用NTFS符号链接。

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

我有一个C:驱动器的Windows 7和D:驱动器为我所有的工作和数据。 \\用户\\李四到D:\\李四安装I搬迁从C我所有的特殊文件夹的Windows 7后。 ADT插件试图加载从C模拟器:当它和配置文件在D:(惊慌:无法打开等)。 NTFS可以得到ADT插件从D到阅读:使用NTFS符号链接。用C打开命令提示符:\\用户\\李四(显然用自己的用户名),使用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 / JC:\\用户\\李四\\ .androidD:\\李四\\ .android

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

现在,当ADT插件尝试引用.android在C: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.

这篇关于Android模拟器无法启动,'错误的文件夹的原因的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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