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 itself, and created the AVD with a custom definition in the android AVD manager.
The errors I’m getting after running ionic run android --info
“Could not create the Java Virtual Machine”
“Could not reserve enough space for object heap”, as well as the warning
“No target specified, deploying device [random device number that i have no clue where it’s coming from]”
Oh yes!.. Bravoo… I was almost uninstalling everything and giving up ionic! This solved my problem and gave me strength to kick going.
Merci, beaucoup!
worked for me too! thanks. not sure why this error started happening all of the sudden. i’ve been building with ‘ionic run android’ for months now and this just started erroring. anyways, thanks!
I was having the same problem and i added org.gradle.jvmargs=-Xmx1024m -XX:MaxPermSize=256m to my gradle.properties . But now i’m having a different problem .
> Error occurred during initialization of VM
Could not reserve enough space for 2097152KB object heap