Thomas.Chan
Thomas.Chan

Reputation: 31

Android studio - Java heap space

Suddenly my app cant run and pop this error out...any idea for this error ? tried so hard still can't solve...

Error:Execution failed for task ':app:packageInstantRunResourcesDebug'.

Java heap space ties file. For example, the following line, in the gradle.properties file, sets the maximum Java heap size to 1,024 MB: org.gradle.jvmargs=-Xmx1024m Read Gradle's configuration guide
Read about Java's heap size

Upvotes: 0

Views: 2125

Answers (1)

Zealous System
Zealous System

Reputation: 2324

there will be gradle.properties file in project directory.

/path/AndroidStudioProjects/ProjectNameFolder/gradle.properties

add this line to allocate 1.5 GB heap to android studio.

org.gradle.jvmargs=-Xmx1536m

Upvotes: 0

Related Questions