Reputation: 1379
I'm currently testing Android O for my published Android application.
And my Gradle fails each time because it is looking for file in : "C:\Users\M?lanie.gradle\caches". As you can see my name contains a problematic character and I've already move my Android sdk because of it.
How can I move the .gradle folder too ?
I've tried to set the "GRADLE_USER_HOME" to "C:\Android\gradle" (the folder exists) but Android Studio still behaves the same way.
Upvotes: 24
Views: 36169
Reputation: 21
I would like to add that the change path for the version "Android Studio Ladybug | 2024.2.1" is: "File > Settings>Build, Execution, Deployment >Build Tools >Gradle >General Settings>Gradle user home."
Upvotes: 1
Reputation: 3032
Currently, to Change the .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.
Upvotes: 13
Reputation: 1936
To change its path
go to this path File > Settings... > Build, Execution, Deployment > Gradle
In the Global Gradle settings
Change Service directory path to what you want.
Hope this works
Upvotes: 28