Add this to your android closure(build gradle):
dexOptions {
javaMaxHeapSize "4g"
}
This will solve your problem. Still, if you face problem see the following link
GC overhead limit exceeded error
Add this to your android closure(build gradle):
dexOptions {
javaMaxHeapSize "4g"
}
This will solve your problem. Still, if you face problem see the following link
GC overhead limit exceeded error