So, I\'m simply trying to run my app on a plugged in HTC Desire. The steps I\'ve taken are: enabling debugging in the manifest xml, enabled usb debugging on the device itsel
Add _JAVA_OPTIONS to your Environment Variables with the value -Xms512M
Try deleting your .gradle from C:\Users\ directory and try again.
This worked for me
Go to Start->Control Panel->System->Advanced(tab)->Environment Variables->System Variables->New:
Variable name: _JAVA_OPTIONS
Variable value: -Xmx512M