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.
I've tried to set the "GRADLE_USER_HOME" to "C:\Android\gradle" (the folder exists) but Android Studio still behaves the same way. 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
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. 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
Set the Gradle home directory to the path. Simply Go to the Android Studio plugins Path and look for a file named gradle-wrapper-x.xx.jar (x.xx = version number). Copy it to the gradle subdirectory of your project’s root folder.
In Windows File Explorer move the .gradle folder to the new location. Move by either by dragging and dropping while holding the Shift key, or using the File Explorer context menu (normally right-click) and selecting cut, and then paste to the new location. Next access the Settings for the Android Studio.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With