修改.AndroidStudio:
進入Android Studio 安裝目錄,進入bin
文件夾,打開 idea.properties
,頂部,去掉以下兩項的註釋符號 # ,修改對應的新路徑即可。
# Note for Windows users: please make sure you're using forward slashes (e.g. c:/idea/system).
custom.user.home=D:/xxx/xxx/android_studio_3.0.1
#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE config folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
#idea.config.path=${user.home}/.AndroidStudio/config
idea.config.path=${custom.user.home}/.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=${user.home}/.AndroidStudio/system
idea.system.path=${custom.user.home}/.AndroidStudio3.0/system
#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to user installed plugins folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
idea.plugins.path=${idea.config.path}/plugins
#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE logs folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
idea.log.path=${idea.system.path}/log
gradle.user.home=${custom.user.home}
修改Gradle地址:
打開studio,菜單欄 file --》 Settings,或者快捷鍵Ctrl+Alt+S,打開Settings窗口
然後,選擇Build, Execution, Deployment --》Gradle;
在導航欄的右側區域修改Gradle user home地址;