Android Studio - Gradle build failing - Java Heap Space

后端 未结 3 1530
日久生厌
日久生厌 2020-12-10 13:50

Android Studio 2.2.3. I\'ve been building an APK for android with my current project with success until very recently. As far as I know, nothing was changed except a data

3条回答
  •  死守一世寂寞
    2020-12-10 14:43

    By default, Android Studio has a maximum heap size of 1280MB. If you are working on a large project, or your system has a lot of RAM, you can improve performance by increasing the maximum heap size for Android Studio processes, such as the core IDE, Gradle daemon, and Kotlin daemon.

    If you use a 64-bit system that has at least 5 GB of RAM, you can also adjust the heap sizes for your project manually. To do so, follow these steps:

    Click File > Settings from the menu bar (or Android Studio > Preferences on macOS). Click Appearance & Behavior > System Settings > Memory Settings.

    For more Info click

    https://developer.android.com/studio/intro/studio-config

提交回复
热议问题