Changing Android Studio setting locatins can be required in many situations like:
- You are running out of free disk space n system partiton.
- You are moving your android studio settings from user account to another.
- You need to know where exactly your settings are stored to backup or replace them
The folders used by the android stdio are the following:
Configuration folder : ${user.home}/.AndroidStudio/config
System folder: ${user.home}/.AndroidStudio/system
If you removed these folder then you can consider android studio is like newborn. You will lose every settings but this will affect your SDK.
Now if you want to change locations of these folders you need to change the settings of the above tow parameters. You will find them in a file called "idea.properties" inside "bin" folder under android studio installation folder. If you found them commented using #, then remove it before applying changes
Open it using any text editor like notepad or wordpad and change them to whatever you need.
Here is an practical example:
- Locate android studio installation:
- D:\Android\android-studio
- Open properties file
- D:\Android\android-studio\bin\idea.properties
- Change settings and save file
- idea.config.path=D:/Android/.AndroidStudioPreview/config
- idea.system.path=D:/Android/.AndroidStudioPreview/system
- Now you can start android studio as fresh installation or you can move your old backed up folders to these locations
- D:\Android\.AndroidStudioPreview\config
- D:\Android\.AndroidStudioPreview\system