减少Android staido 占用C 盘

1。gradle 更换文件夹:

设置GRADLE_USER_HOME环境变量

在/etc/profile或~/.bash_profile增加如下:
export GRADLE_USER_HOME=D:/Cache/.gradle

参考:
http://blog.csdn.net/yanzi1225627/article/details/52024632

2。android 配置文件夹的修改
这个文件夹的配置有些不太一样,只能从默认的安装文件中去配置。首先进入你的 AndroidStudio 安装目录中的 Bin 文件夹。

\Android\AndroidStudio\bin
进入文件:idea.properties ,而后修改如下:

# Use ${idea.home.path} macro to specify location relative to IDE installation home.
# Use ${xxx} where xxx is any Java property (including defined in previous lines of this file) to refer to its value.
# Note for Windows users: please make sure you're using forward slashes (e.g. c:/idea/system).

#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE config folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
idea.config.path=E:/android_stadio_temp/.AndroidStudio3.0/config

#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE system folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
idea.system.path=E:/android_stadio_temp/.AndroidStudio3.0/system
posted @ 2018-03-16 12:49  有点理想的码农  阅读(199)  评论(0编辑  收藏  举报