Android Studio Build gradle OutOfMemoryError
<p>I'm new in Android. I import Github project in Android studio, but i see this problem `Error:java.lang.OutOfMemoryError: Java heap space</p>

<blockquote>
  <p>Error:java.lang.OutOfMemoryError: Java heap space
  .
  Please assign more memory to Gradle in the project's gradle.properties file.
  For example, the following line, in the gradle.properties file, sets the maximum Java heap size to 1,024 MB:
  <em>org.gradle.jvmargs=-Xmx1024m</em>
  <a href="http://www.gradle.org/docs/current/userguide/build_environment.html" rel="noreferrer">Read Gradle's configuration guide</a><br><a href="http://docs.oracle.com/javase/7/docs/technotes/guides/vm/gc-ergonomics.html" rel="noreferrer">Read about Java's heap size</a></p>
</blockquote>

<p>I can't fix this problem with <a href="https://stackoverflow.com/questions/32022765/failed-to-sync-gradle-project">this </a> .
how should i do to fix that?</p>