简体   繁体   English

创建Android模拟器时出现问题

[英]problem creating Android emulator

I've just installed Eclipse and am trying to create my first Emulator. 我刚刚安装了Eclipse,并试图创建我的第一个仿真器。 The problem is that I have a partioned drive and my C drive only has 750Mb left, so I installed Eclipse on my D drive which has over 10Gb. 问题是我有一个分区的驱动器,而我的C驱动器只剩下750Mb,因此我在具有10Gb以上的D驱动器上安装了Eclipse。 My workspace is also on the D drive but when I try to create an emulator virtual device it defaults to c:\\documants and settings... when I try to change it to a new folder in my workspace I get an error saying 'Not a valid keystore path'. 我的工作空间也在D驱动器上,但是当我尝试创建仿真器虚拟设备时,它默认为c:\\ documants和设置...当我尝试将其更改为我的工作空间中的新文件夹时,出现错误消息:“不有效的密钥库路径”。 How can I get around this? 我该如何解决?

This question is rather old, so you may have already fixed your issue. 这个问题比较老,因此您可能已经解决了问题。 For others reading this, look at https://stackoverflow.com/a/4648123/1993898 对于其他阅读本文的人,请参见https://stackoverflow.com/a/4648123/1993898

I used his example to create an environment variable, changing the directory to one on my D:\\ drive, in order to cause the AVD to be stored there, rather than my C:\\ drive. 我使用他的示例创建了一个环境变量,将目录更改为D:\\驱动器上的目录,以便将AVD存储在此处,而不是C:\\驱动器中。

You can right-click "My Computer" and hit "r" or select properties, to open the System page, then hit "Advanced system settings" from the left hand side, and the "Environment Variables" button from the bottom of the resulting dialog. 您可以右键单击“我的电脑”,然后单击“ r”或选择属性,以打开“系统”页面,然后单击左侧的“高级系统设置”,然后单击结果底部的“环境变量”按钮。对话。

Then just hit the "New..." button in the upper section, enter "ANDROID_SDK_HOME" for the Name field, and enter your preferred path in the Value field. 然后只需点击上部的“新建...”按钮,在“名称”字段中输入“ ANDROID_SDK_HOME”,然后在“值”字段中输入您的首选路径。

Your ".android" folder will now be located in the directory you entered, which holds the "avd" folder among other data. 现在,“。android”文件夹将位于您输入的目录中,该目录包含“ avd”文件夹以及其他数据。 I found this very useful to store my working files on a separate drive, preventing loss of information in the event that my system drive is damaged or wiped. 我发现将工作文件存储在单独的驱动器上非常有用,可以防止系统驱动器损坏或擦拭时丢失信息。

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

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