How set Gradle JVM settings in Android Studio 1.3

前端 未结 2 1601
隐瞒了意图╮
隐瞒了意图╮ 2021-02-06 03:27

Starting with version 1.3, Android Studio will no longer support IDE-specific Gradle JVM argument settings. Gradle JVM settings need to be set in gradle.properties files. This c

2条回答
  •  北海茫月
    2021-02-06 04:04

    Try changing your jvmargs to the following

    org.gradle.jvmargs=-Xmx1024m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
    

    Or something smaller -Xmx512m as your system does not have enough memory to create the object heap and thus the jvm.

    You can also add the following option too:

     org.gradle.daemon=true
    

    For those on macosx I like to add the following

    -Djava.awt.headless=true
    

提交回复
热议问题