更改 android sdk 和 avd 管理器的路径,使其不指向 c:\users
有什么办法可以在android SDK中改变这个吗? 看起来 \tools\ 文件夹中的一些 .bat 文件设置了一些环境变量,但无法准确说明它们在做什么。
我在注册表中将 Windows 系统配置文件设置设置为指向 d:\users,其他所有内容都指向那里,但 android sdk 一直想将内容放入 c:\users...
我的理由是我有一个更快的速度驱动器作为我的 d 驱动器(5 磁盘 raid0),我的系统驱动器是 5400 spin ide 驱动器...
Is there any way to change this in the android SDK?
It looks like some of the .bat files in the \tools\ folder sets some environment variables but cant tell exactly what they are doing.
I set my windows system profile settings in the registry to point to d:\users and everything else is pointing there but the android sdk keeps wanting to put things in c:\users...
My reasoning for this is I have a much faster drive as my d drive(5 disk raid0) and my system drive is a 5400 spin ide drive...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我发现将环境变量 ANDROID_SDK_HOME 添加到 Windows 并将其指向 d:\users\
d:\users\
myusername >
成功了。我通过编辑注册表项
以及用户
guid
下的profileimagepath
来更改我的用户配置文件文件夹,使其指向 d 驱动器不过,我保留了
programdata
文件夹键。I found that adding the environment variable
ANDROID_SDK_HOME
to windows and pointing it tod:\users\< myusername >
did the trick.I changed my user profile folders by editing the registry keys
and also the
profileimagepath
under my user'sguid
to point to the d drivei left the
programdata
folder key alone however.转到“控制面板”⇒“系统”⇒(Vista/7)“高级系统设置”⇒切换到“高级”选项卡⇒“环境变量”⇒为所有用户选择“系统变量”⇒选择变量“PATH”⇒选择“编辑”来修改现有变量 ⇒ 在变量“值”中,附加您的 \tools 目录(例如“d:\bin\android-sdk\tools”),后面跟一个分号“;”,在前面所有现有路径条目中,请勿删除任何现有条目;否则,将 platform-tools 目录添加到 PATH 后,某些程序可能无法运行。
Go to "Control Panel" ⇒ "System" ⇒ (Vista/7) "Advanced system settings" ⇒ Switch to "Advanced" tab ⇒ "Environment variables" ⇒ Choose "System Variables" for all users" ⇒ Select variable "PATH" ⇒ Choose "Edit" for modifying an existing variable ⇒ In variable "Value", APPEND your \tools directory (e.g., "d:\bin\android-sdk\tools"), followed by a semi-colon ';', IN FRONT of all the existing path entries. DO NOT remove any existing entry; otherwise, some programs may not run after that Add the platform-tools directory to the PATH too.