android studio 修改下载缓存默认配置记录

1.android studio 安装完成后会在C:\Users\username目录下生成.android .AndroidStudio .gradle 文件夹,在使用时候会将依赖包下载到.gradle 文件夹中,会使得C盘占用空间增大;
2.将.android .AndroidStudio .gradle 移动到其他盘上,电脑属性-高级变量中新建GRADLE_USER_HOME 变量值为.gradle所在路径,如E:\android_studio_config\.gradle;找到andorid studio 安装目录下的idea.PROPERTIES文件,将找到idea.config.path 和idea.system.path (默认是注释掉的)

#---------------------------------------------------------------------
 idea.config.path=E:/android_studio_config/.AndroidStudio3.5/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_studio_config/.AndroidStudio3.5/system

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章