Android studio where is gradle.properties file?

Just create a file called gradle.properties in your root project:

root
|--gradle.properties
|--build.gradle
|--settings.gradle
|--app
|----build.gradle

Then add inside the file:

org.gradle.jvmargs=-Xmx2048m

In the Project window, right click your Project name and choose New > File. The new file name is "gradle.properties". The content is: org.gradle.jvmargs=-Xmx1536M ;(or the number shown in your Gradle Console) in a line like this: ... increase the maximum heap size for the Gradle daemon to more than 2048 MB.


gradle.properties is located in windows

    C:\Users\<%User_Name%>\.gradle\gradle.properties

In android studio

   `Gradle Scripts` >> `gradle.properties (Global Properties)`