I tried installing another Gradle Vm Option from all the answers found in stackoverflow, but nothing seems to work. I'm on Android Studio 1.2.2 I get this error when I try to run the application either on the emulator or on the device.

The only thing that works for me is that I need to set up a new project in different directories, but it only works for 3 instances, and then bang, this error appears. It is a tedious job to do the above process 10 times.
Edit_1: I even tried invalidating caches / reloads, not working
android android-studio android-gradle
Hvn
source share