I get an java.lang.OutOfMemoryError: GC overhead limit exceeded when run gradle on Android 1.4 ... these are my depedencies :
dependencies {
This is what I suggest:
Add this to your "gradle.properties" file:
org.gradle.jvmargs=-Xmx4096m -XX:MaxPermSize=4096m -XX:+HeapDumpOnOutOfMemoryError
Also, read this article. You might be able to make the building a bit faster, by adding a combination of those:
org.gradle.daemon=true
org.gradle.parallel=true
org.gradle.configureondemand=true