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

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

问题描述

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

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

我希望这能正常工作.

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

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