可以更改 Android 虚拟设备的保存位置吗? [英] Possible to change where Android Virtual Devices are saved?

查看:22
本文介绍了可以更改 Android 虚拟设备的保存位置吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在运行 Windows XP 的机器上设置了 Android SDK 和 Eclipse,并且 AVD(Android 虚拟设备)默认保存到Doc​​uments and Settingsuser.android".有什么办法可以改变这种行为吗?我将所有其他组件保存在一个单独分区的目录中,并希望将所有内容合并.显然不是什么大问题,但这里有人知道解决方法吗?

I've set up the Android SDK and Eclipse on my machine running Windows XP and AVDs (Android Virtual Devices) are saved to "Documents and Settingsuser.android" by default. Is there any way to change this behavior? I have all of the other components saved in a directory on a separate partition and would like everything to be consolidated. Obviously not a huge deal but does anyone here know a workaround for this?

推荐答案

添加新的用户环境变量 (Windows 7):

Add a new user environment variable (Windows 7):

  1. 开始菜单>控制面板>系统>高级系统设置(左侧)>环境变量

  2. 添加一个指向您的主用户目录的新用户变量(在顶部):
  1. Start Menu > Control Panel > System > Advanced System Settings (on the left) > Environment Variables

  2. Add a new user variable (at the top) that points your home user directory:

变量名称:ANDROID_SDK_HOME
变量值:您选择的目录的路径

AVD Manager 将使用该目录将其 .android 目录保存到其中.

AVD Manager will use this directory to save its .android directory into it.

对于那些可能感兴趣的人,我写了一篇关于我第一次涉足 Android 开发的博客......
AndroidHello World":悲惨故事

For those who may be interested, I blogged about my first foray into Android development...
Android "Hello World": a Tale of Woe

或者,您可以使用快速环境编辑器来设置环境变量.

Alternatively, you can use the Rapid Environment Editor to set the environment variables.

这篇关于可以更改 Android 虚拟设备的保存位置吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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