Android Studio Gradle OutofMemory Error

后端 未结 3 1498
天涯浪人
天涯浪人 2021-01-21 13:23

Ive been trying to import my android project into a new computer with Android Studio 0.5.2 after each gradle build i get:

Out of memory: Java heap space. Configu         


        
3条回答
  •  无人共我
    2021-01-21 14:06

    Try the following:

    Ctrl + Alt + S -> Compiler -> Gradle

    InVM Options field write:

    -Xmx2048m -XX:MaxPermSize=512m

提交回复
热议问题