设备上出现“ionic run Android"错误 [英] Error 'ionic run Android' on device

查看:33
本文介绍了设备上出现“ionic run Android"错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,我只是想在插入的 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.

运行 ionic run 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

这篇关于设备上出现“ionic run Android"错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆