[英]How can I run my ionic app on a physical device (Wiko phone) on Windows?
[英]How to run my app on an IONIC 3 physical device
我想在物理设备HUAWEI K2-L23上运行我的应用程序,但没有得到结果...
1.-我添加平台
ionic cordova platform add android
2.-我为以前的平台构建应用程序
ionic cordova build android
3.-我在物理设备上运行该应用程序
ionic cordova run android
做三步,我得到以下错误:
> 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
我正在将Visual Studio Code与Ionic 3配合使用,已经安装了Cordova及其所有依赖项,还添加了_JAVA_OPTIONS作为值为-Xmx512M的系统变量,我是使用SQLite的新手,这就是为什么我想要在物理设备上显示我的应用,对我有帮助吗?
请尝试以下步骤:
Visual Studio Code
Visual Studio Code
打开您的项目 如果上述方法不起作用,请查看SO上的这篇文章,然后尝试哪一种对您有用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.