【发布时间】:2018-08-21 01:19:17
【问题描述】:
我想在物理设备上运行我的应用程序 HUAWEI K2-L23 但我没有得到结果...
1.- 我添加平台
ionic cordova platform add android
2.- 我为以前的平台构建应用程序
ionic cordova build android
3.- 我在物理设备中运行应用程序
ionic cordova run android
执行 3 步操作时出现以下错误:
> cordova run android
Android Studio project detected
ANDROID_HOME=C:\Users\crisa\AppData\Local\Android\sdk
JAVA_HOME=C:\Program Files (x86)\Java\jdk1.8.0_181
studio
Subproject Path: CordovaLib
Subproject Path: app
Starting a Gradle Daemon (subsequent builds will be faster)
FAILURE: Build failed with an exception.
* What went wrong:
Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at https://docs.gradle.org/4.1/userguide/gradle_daemon.html
Please read the following process output to find out more:
-----------------------
Error occurred during initialization of VM
Could not reserve enough space for 2097152KB object heap
我正在使用带有 Ionic 3 的 Visual Studio Code ...,我安装了 Cordova 及其所有依赖项,我还添加了 _JAVA_OPTIONS 作为值为 -Xmx512M 的系统变量,我是使用 SQLite 的新手,那就是为什么我想在物理设备上展示我的应用程序,对我有什么帮助吗?
【问题讨论】:
-
在你的项目文件夹中运行
cordova requirements -
你说执行一些命令?或验证科尔多瓦版本? @SurajRao
-
该命令检查您的应用程序是否满足所有环境依赖项。
cordova requirements
标签: android sqlite ionic-framework visual-studio-code ionic3