Finally, I got the solution to move three of the folders that I put above. I think it could be interesting to put here the problems that I faced and the changes that I made to solve them.
I’m going to investigate about the last folder, .oracle_jre_usage
, and I will complete this answer if I got a solution for it. Look that I complete the solution for .gradle
folder.
To move .android
folder
Really, following the steps of the blog that Rahul Tiwari
provided, this folder could been moved. Nevertheless I’m going to put here all the process:
-
You have to move your
.android
folder, after closingAndroid Studio
(if you have it running), to the folder in which you want that it will be stored, in my case,C:\Users\Administrator\AndroidStudio
. -
BEWARE WITH THE SPACES IN THE NAME OF THE NEW FOLDER, IT COULD GIVE TO YOU PROBLEMS (AS ME). I mean,
Android Studio
,New Folder
or similars. -
If you are on
Windows
, you can do right-click onMy Computer > Properties > Advanced System Settings > Environment Variables
and create a new environment variable namedANDROID_SDK_HOME
and as value you have to put the new path in which.android
folder will be stored. It’s the same path in which you have moved the.android
folder in the step above. -
Click “OK” button to accept your changes.
-
Re-launch
Android Studio
and look that the.android
folder doesn’t appear in the default path.
To move .AndroidStudio1.3
folder
With that folder I had some problems because I didn’t noticed some details that were very important. Here the steps that I followed:
-
First of all, you have to close
Android Studio
before doing any change. -
After, you have to move the folder
.AndroidStudio1.3
to the path in which you want that it will be stored. -
Next, you have to go to the folder in which
Android Studio
were installed and open “idea.properties” file and changed the lines where idea.config.path and idea.system.path appeared for the new path in which these folders are going to be located.
They have to be something similar to this:
idea.config.path=C:/Users/Administrator/AndroidStudio/.AndroidStudio1.3/config
idea.system.path=C:/Users/Administrator/AndroidStudio/.AndroidStudio1.3/system
Here I had three problems so please be careful:
- Notice that the paths are with
/
and not with\
asWindows
put by default.
- DON’T CHANGE the values of idea.plugins.path and idea.log.path (My EDIT 3). Be sure that you are changing idea.config.path and idea.system.path values.
- Uncomment the lines in which idea.config.path and idea.system.path appears. I mean, remove the
#
that they have at the begining of each line.
- The last step, re-launch
Android Studio
.
Searching and doing some proves I also get the solution to move .gradle
folder. The steps are the same as .android
folder but I put here all the steps (with the values that changed) to avoid any confusion. Here it is:
To move .gradle
folder
-
You have to move your
.gradle
folder, after closingAndroid Studio
(if you have it running), to the folder in which you want that it will be stored, in my case,C:\Users\Administrator\AndroidStudio\.gradle
. -
BEWARE WITH THE SPACES IN THE NAME OF THE NEW FOLDER, IT COULD GIVE TO YOU PROBLEMS (AS ME). I mean,
Android Studio
,New Folder
or similars. -
If you are on
Windows
, you can do right-click onMy Computer > Properties > Advanced System Settings > Environment Variables
and create a new environment variable namedGRADLE_USER_HOME
and as value you have to put the new path in which.gradle
folder will be stored. It’s the same path in which you have moved the.gradle
folder in the step above. -
Click “OK” button to accept your changes.
-
Re-launch
Android Studio
and look that the.gradle
folder doesn’t appear in the default path.