We have to remember that android studio is based on IntelliJ IDEA sftware from JetBrain. So many of customization related to the editor or the main prgram itself is contrlled by IntelliJ settings. S most of steps in this tutorial is indeed came from
knowledge base of IntelliJ IDEA
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:
So android studio at first startup creates two folders called system and config under main folder called AndroidStudio under your user home. User home in windows 7 will be c:\users\username. Of course the stem partition is where your system installed. In brief this is the folder where your desktop and documents folder is located.
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