Getting warning about memory usage with Android Studio Gradle. Tried adding line to still get warning

I have a project at /Users/andytriboletti/lolcats-android.

In it I have a file with the line:

I see this warning:
To run dex in process, the Gradle daemon needs a larger heap.
It currently has approximately 4551 MB.
For faster builds, increase the maximum heap size for the Gradle daemon to more than 5120 MB.
To do this set org.gradle.jvmargs=-Xmx5120M in the project
For more information see

I have also tried in /Users/andytriboletti/
and in /Users/andytriboletti/.gradle/

It’s like this with any Android Studio Gradle Project