Is it the same to add properties in gradle.properties and gradle-wrapper.properties?

3

I have an Android Studio project that has only the gradle-wrapper.properties file and when I run the build I get a message that I have to add a new property to gradle.properties , but that file is not in the project.

The message is as follows:

  

For faster builds, increase the maximum heap size for the Gradle   daemon to more than 2048 MB. To do this set   org.gradle.jvmargs = -Xmx2048M in the project gradle.properties.

The question is Is it the same to change the property in gradle-wrapper.properties , instead of gradle.properties ? Should I create the new file gradle.properties to add the property org.gradle.jvmargs=-Xmx2048M in?

    
asked by Pablo Ezequiel 03.07.2016 в 21:43
source

1 answer

2

NO is the same.

Those in the wrapper are configurations of the local versions of gradle and will not spread outside your environment (for example to the rest of your team if they use GIT).

The gradle.properties that is in the root of your project is the one that governs how your project works, that is what you should edit.

    
answered by 27.07.2016 / 01:00
source