Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GC overhead limit exceeded - Android Studio

Android studio 2.2 was working good for me and build fast but now after updating to 2.3 ! it takes a lot of time to build my projects and also After a period of time Android studio failed because of this exception

Error:A problem occurred configuring project ':app'. Failed to notify project evaluation listener. GC overhead limit exceeded

any help !

like image 511
Mohamed Yehia Avatar asked Dec 19 '22 09:12

Mohamed Yehia


1 Answers

Try adding this to your gradle.properties:

        org.gradle.daemon=true
        org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
        org.gradle.parallel=true
        org.gradle.configureondemand=true
like image 84
Autumn's Fall Avatar answered Feb 15 '23 08:02

Autumn's Fall