Default path modification of AndroidStudio configuration

The default configuration path of AndroidStudio is under C:\Users\username\.AndroidStudio3.0. There will be a disadvantage here that the C drive will often run out of space, so I want to change it to another drive. Look at the picture:

After Android Studio is installed, several folders will be generated in the user directory of the system disk:

  • .android This folder is the AVD (Android Virtual Device Manager) generated by the Android SDK, that is, the emulator storage path
  • .AndroidStudio This folder is the configuration folder of Android Studio, which mainly stores some AndroidStudio settings and cache information of plugins and projects
  • .gradle This folder is the configuration folder of the build tool Gradle, and also stores some project build cache information

1.AndroidStudioFolder modification

Enter the installation directory of Android Studio, enter the binfolder, open it with text editing software idea.properties, remove the comment symbol of the following two items #, and modify the corresponding path to a new path.

 idea.config.path=G:/AndroidStudioSetup/.AndroidStudio3.0/config

 idea.system.path=G:/AndroidStudioSetup/.AndroidStudio3.0/system

2.gradleFolder modification

This is relatively simple, just modify it in the configuration options of Android Studio

3.  .androidFolder modification

This folder is generated by the Android SDK configuration emulator and is the one that takes up the most space.
First, you need to add a system environment variable ANDROID_SDK_HOME, as shown below:

After adding the environment variable, modify .inithe path information in the corresponding file under the new path, and then restart the system to take effect.

G: \ AndroidStudioSetup \ .android \ avd \ Nexus_5X_API_23.avd

config.ini

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324413367&siteId=291194637