Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I move the Android Studio 's .gradle folder to other disk?

I use the windows system,and I find after I install Android Studio,it will create the folder .gradle in my system disk,and this would occupy my a part of space,so I want ask whether I can move it to other disk,and whether would have disadvantage.Thank you.

like image 313
wavever Avatar asked Sep 08 '15 09:09

wavever


People also ask

Can I move android folder to another drive?

Yep - Go into settings in android studio and you can select where you want the sdk to reside. would it just move these folders too? Nah, you'd have to copy-paste them yourself.

What happens if I delete .gradle folder?

You can delete these files without problems. Gradle will recreate it. Also these file are not committed and Version Control Systems. It means that when you checkout the project these files are not present on the project.

Where is the .gradle folder in Android Studio?

gradle folder location for Android studio, you must: Define the GRADLE_USER_HOME environment variable to point to C:\WorkFolder\ . gradle. You can read more in the Configure the IDE docs.

Can I delete .gradle folder android?

However, if you install/use that app again, the folders will recreate themselves. So the conclusion: Yes, you can delete the, if you do not use the apps associated with them.


1 Answers

Open Android Studio,

go to File > Settings... > Build, Execution, Deployment > Gradle

In Global Gradle settings

Change Service directory path to the desired folder.

Save the setting.

Now close Android Studio and move the .gradle from your C drive to the location you have chosen.

I have my .gradle on my second HDD (so that's how i did it)

like image 75
Marcusswitch Avatar answered Oct 12 '22 10:10

Marcusswitch