错误'离子运行Android'在设备上 [英] Error 'ionic run Android' on device
问题描述
所以,我只是想在插入HTC Desire上运行我的应用程序。我采取的步骤是:在清单xml中启用调试,在设备上启用usb调试,并在android AVD管理器中创建带有自定义定义的AVD。
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.
运行后我遇到的错误离子运行android --info
无法创建Java虚拟机
无法为对象堆保留足够的空间,以及警告
未指定目标,部署设备[随机设备编号,我不知道它来自哪里]
"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]"
这是我的命令窗口的图像:
Here's an image of my command window:
为什么我可能会收到此警告和错误消息?他们是相关的问题吗?或者他们是两个单独的问题?
Any ideas why i might have this warning and error messages? Are they related issues? or are they two seperate issues?
推荐答案
这对我有用
转到开始 - >控制面板 - >系统 - >高级(选项卡) - >环境
变量 - >系统变量 - >新建:
Go to Start->Control Panel->System->Advanced(tab)->Environment Variables->System Variables->New:
变量名称: _JAVA_OPTIONS
变量值: -Xmx512M
这篇关于错误'离子运行Android'在设备上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!