更改Android Studio的文件位置 [英] Change file location for Android Studio

查看:584
本文介绍了更改Android Studio的文件位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,我刚刚开始使用Android Studio.我在主SSD上使用Windows 7 64bit.安装IDE后,我将SDK和Android Studio保存在辅助驱动器上.现在,我注意到Android Studio在我的主SSD的个人文件夹"中添加了其他3个文件夹(.android,.AndriodStudio,.gradle).

So, I just started using Android Studio. I am using windows 7 64bit on my main SSD. When I installed the IDE, I have the SDK and Android Studio saved on a secondary drive. Now I noticed that Android Studio added 3 other folders in the "Personal Folder" in my main SSD (.android, .AndriodStudio, .gradle).

有人知道如何给这些家伙一个不同的目的地,以便我可以节省主硬盘上的空间吗?

Anyone know how to give these guys a different destination so I can save space on my main hard drive?

推荐答案

将这些文件夹复制到您想要的任何位置.但是一旦复制,请执行以下步骤.

Copy those folders to wherever you want. But once you copy do the following steps.

1.)打开Windows资源管理器,右键单击计算机,然后选择属性.在打开的控制面板主页中,在左窗格中选择高级系统设置.然后在系统属性窗口的高级"选项卡下选择环境变量.

1.) Open Windows explorer and right click on computer and select properties. In the control panel home that opened select advanced system settings in the left pane. Then select environment variables under advanced tab in the system properties window.

2.)添加一个名为'ANDROID_AVD_HOME'的新用户变量,并将其值作为/.android/avd/

2.) Add a new user variable with name 'ANDROID_AVD_HOME' and value as path to /.android/avd/

3.)类似地设置GRADLE环境变量.此链接可能有帮助- http://www.gradle.org/installation

3.) Similarly set GRADLE environment variables. This link might help - http://www.gradle.org/installation

4.)启动Android Studio-它会询问您是否要导入配置文件.定位到/.AndroidStudio/config

4.) Start Android Studio - it will ask if you want to import config file. Give location to /.AndroidStudio/config

我希望这可以正常工作.

I hope this should work fine.

这篇关于更改Android Studio的文件位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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