I am having a strange problem with my Android app in Android Studio. Everything seemed to be working fine, until today after adding some new files and making some updat
Try to run your script with this option in your android closure:
dexOptions { javaMaxHeapSize "4g" }
This will increase the maximum heap size for dex operations. You can find some explanation in this SO question