Out of memory error: Java heap memory on Android Studio

后端 未结 12 794
-上瘾入骨i
-上瘾入骨i 2020-12-24 05:47

How do I fix java.lang.OutOfMemoryError: Java heap space when compiling my Android project?

I get this after I upgraded to version 1 of Android Studio.

12条回答
  •  生来不讨喜
    2020-12-24 06:13

    assign more memory to Gradle in the project's gradle.properties file.For example:

    org.gradle.jvmargs=-Xmx1024m

提交回复
热议问题