buildscript { repositories { google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:4.2.0' } }
org.gradle.jvmargs=-Xmx1536M
Build, Execution, Deployment -> Build Tools -> Gradle -> Global Gradle Settings -> VM Options:-Xmx1536M -XX:MaxPermSize=512M -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 Build, Execution, Deployment -> Compiler -> Android Compilers -> Kotlin Compiler -> Additional command line parameters:-Xmx512m