Android Studio相關路徑修改
1. .AndroidStudio
是android
studio的配置資料夾
進入Android Studio的安裝目錄,進入bin資料夾,用文字編輯軟體開啟idea.properties
,去掉以下兩項的註釋符號#
,修改對應的路徑為新路徑即可。
#---------------------------------------------------------------------
# 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=D:/.AndroidStudio/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=D:/.AndroidStudio/system
2. .gradle
是
構建工具
Gradle的配置資料夾
在Android Studio的配置選項中修改
Setting>>Build,Execution,Deployment>>Gradle>>Service directory path
3. .android
資料夾的修改
這個資料夾是由Android SDK配置模擬器生成的,也是最佔空間的一個。
首先,需要新增一個系統的環境變數ANDROID_SDK_HOME ,
變數名其實有些誤導人,這個如果Google官方定義成AVD_HOME
可能還好一些,其實應該是模擬器的預設路徑。新增好環境變數後到新的路徑下修改下相應的.ini
檔案內的路徑資訊,然後重啟系統生效。