title: Execution failed for task ':app:packageInstantRunResourcesDebug'. (Android Studio can't execute)
body: <p>I can't run or execute my code. I already followed <a href="https://stackoverflow.com/questions/32022765/failed-to-sync-gradle-project">this</a>.</p>
  
  <p>It still won't work. My error message<br></p>
  
  <blockquote>
    <p>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:
    <em>org.gradle.jvmargs=-Xmx1024m</em>
    <a href="http://www.gradle.org/docs/current/userguide/build_environment.html" rel="nofollow noreferrer">Read Gradle's configuration guide</a><br><a href="http://docs.oracle.com/javase/7/docs/technotes/guides/vm/gc-ergonomics.html" rel="nofollow noreferrer">Read about Java's heap size</a></p>
  </blockquote>
  
  <p>I tried turning off the instant run and there's a new error<br></p>
  
  <blockquote>
    <p>Error:Execution failed for task ':app:packageDebug'.
    Java heap space
    ect's gradle.properties file.
    For example, the following line, in the gradle.properties file, sets the maximum Java heap size to 1,024 MB:
    <em>org.gradle.jvmargs=-Xmx1024m</em>
    <a href="http://www.gradle.org/docs/current/userguide/build_environment.html" rel="nofollow noreferrer">Read Gradle's configuration guide</a><br><a href="http://docs.oracle.com/javase/7/docs/technotes/guides/vm/gc-ergonomics.html" rel="nofollow noreferrer">Read about Java's heap size</a></p>
  </blockquote>
  
  <p>EDIT: I found the reason why. It's because i added a code that'll unzip a 500 mb file and will transfer into the internal storage. It might be because it has a lot of files. The zipfile has 80,000+ files.</p>