Android studio configures the default .gradle path

Android studio configures the default .gradle path

When android studio creates a new project, the default .gradle path is considered to be in the user directory of the c drive. After a long time, the capacity of the c drive is tight. The default .gradle file directory can be placed on any disk location by configuring the idea.properties configuration file under android-stduio\bin.

Add a line at the end of the idea.properties file (if not):

gradle.user.home=D:/program/android.gradle

The gradle loading file of the new android studio project will be automatically placed under D:/program/android.gradle.

Guess you like

Origin blog.csdn.net/zhangphil/article/details/129295567