Android Studio: GC overhead limit exceeded

Increase the IDE memory (file studio.vmoptions)

http://tools.android.com/tech-docs/configuration

My settings:

-Xms256m
-Xmx3080m
-XX:MaxPermSize=350m
-XX:ReservedCodeCacheSize=225m
-XX:+UseCompressedOops

This is a problem of not enough java heap for gradle, not IDE

I increased Java Heap in gradle.properties

org.gradle.jvmargs=-Xms1024m -Xmx4096m

If anyone still facing the issue and there is no impact on increasing the IDE memory and gradle.properties than invalidate cache/restart is the last option for you. In my case it is working after invalidate cache/restart