简体   繁体   中英

Android studios gradle.properties

Can someone help me solve this issue. yes I have seen this question before but from years earlier than 2016. The issue:

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

How do I fix this error? Please help with solutions from 2016. Any help would be appreciated.

First try to clean and rebuild your project .. if your issue remains still same Then update your SDK and import your code again.

But if both of method not works then use this alternative. After updating sdk choose a empty project and build all third party libraries in your gradle. After this copy paste one by your code in new project with their repective places.

this method is slight lengthy and not up to standard but it will resolve your problem.

Had the same issue just now. Managed to fix it by increasing the Java max heap size.

Changed org.gradle.jvmargs=-Xmx1536m to org.gradle.jvmargs=-Xmx4000m

in gradle.properties

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM