Android Studio usually puts these three folders in C:/Users/ Users by default after Windows installation, which will cause a problem that it takes up a lot of space on DRIVE C, so I want to move it to another drive to reduce the space pressure on drive C.
What these three folders do:
- Android this folder is the AVD (simulator) path generated by the Android SDK.
- AndroidStudio is the configuration folder of AndroidStudio, which contains some AndroidStudio Settings and plugin and project cache information.
- The. Gradle folder is the configuration folder of the build tool Gradle. It also stores build cache information for some projects.
This time, I will move these three files to drive F. First, I will create the folder AndroidConfig under drive F, and then copy the three folders of drive C into this target folder.
Android folder modification
First, you need to add a system environment variable ANDROID_SDK_HOME, as shown below:
Just click OK.
AndroidStudio folder changes
Go to the Android Studio installation directory, go to the bin folder, use the text editing software to open idea.properties, remove the comment symbol # of the following two items, and change the corresponding path to the new path. As shown in figure:
Gradle folder changes
First, you need to add a system environment variable, GRADLE_USER_HOME, as shown below:
Android Studio -> File -> Settings -> Gradle
Finished!