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