Configuration of Gradle environment variables

Configure GRADLE_HOME :

Find the location of gradle in Android Studio

E:\Android_Studio\gradle\gradle-2.10

 

配置GRADLE_USER_HOME:

Find a place with a large drive letter space to relocate the .gradle file

 

For example, I put it in E:\Android\.gradle

 

config path :

Add %GRADLE_HOME%\bin to path

 

Next, check whether the path has been added successfully in the command prompt



 

If it is successful in the path, then enter gradle -v in the command prompt to see if gradle has been configured successfully

 

 



 

If the version information of gradle appears, it means that you have successfully configured

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326676149&siteId=291194637