简体   繁体   English

无法在Genymotion中运行/部署Ionic应用程序

[英]Unable to Run/Deploy Ionic application in Genymotion

After running Genymotion virtual device, when I try to run ionic application, run command just hangs. 运行Genymotion虚拟设备后,当我尝试运行离子应用程序时,运行命令将挂起。

First of all "adb devices" returned no device listed. 首先,“ adb设备”未列出任何设备。 I used "adb connect" command to connect Geneymotion virtual device as shown below, 我使用“ adb connect”命令连接Geneymotion虚拟设备,如下所示,

C:\\Users\\Asif\\myapp3>adb connect 192.168.56.101:5555 connected to 192.168.56.101:5555

"ionic build android" command works fine and generates APK file but when I run "ionic run android" command it hangs and keeps on waiting as shown below, “ ionic build android”命令可以正常工作并生成APK文件,但是当我运行“ ionic run android”命令时,它会挂起并继续等待,如下所示,

C:\Users\Asif\myapp3>ionic run android
Running command: "C:\Program Files\nodejs\node.exe" C:\Users\Asif\myapp3\hooks\a
fter_prepare\010_add_platform_class.js C:\Users\Asif\myapp3
add to body class: platform-android
Running command: cmd "/s /c "C:\Users\Asif\myapp3\platforms\android\cordova\run.
bat""
ANDROID_HOME=G:\Android\sdk
JAVA_HOME=C:\Program Files\Java\jdk1.7.0_75

Sometimes it process one step further and hangs at below stage, 有时它会进一步处理,并在下一个阶段挂起,

C:\Users\Asif\myapp3>ionic run android
Running command: "C:\Program Files\nodejs\node.exe" C:\Users\Asif\myapp3\hooks\a
fter_prepare\010_add_platform_class.js C:\Users\Asif\myapp3
add to body class: platform-android
Running command: cmd "/s /c "C:\Users\Asif\myapp3\platforms\android\cordova\run.
bat""
ANDROID_HOME=G:\Android\sdk
JAVA_HOME=C:\Program Files\Java\jdk1.7.0_75
WARNING : No target specified, deploying to device '192.168.56.101:5555'.

Please advise. 请指教。 USB debugging is enabled in the virtual Device. 在虚拟设备中启用了USB调试。

Here is my environment details, 这是我的环境详细信息,
Genymotion 2.6.0 Genymotion 2.6.0
Oracle VM Virtual Box manager 5.0.4 Oracle VM Virtual Box管理器5.0.4
Virtual Device: Google Nexus 4 -5.1.0-API22-786X1280 虚拟设备:Google Nexus 4 -5.1.0-API22-786X1280
Cordova CLI: 5.4.1 科尔多瓦CLI:5.4.1
Ionic CLI Version: 1.7.12 Ionic CLI版本:1.7.12
Ionic App Lib Version 0.6.5 Ionic App Lib版本0.6.5
OS: Windows 7 SP1 64 bit Node Version: v4.2.1 操作系统:Windows 7 SP1 64位节点版本:v4.2.1
java version "1.7.0_75" 64bit Java版本“ 1.7.0_75” 64位
AndroidManifest.xml entry: uses-sdk android:minSdkVersion="16" android:targetSdkVersion="22" AndroidManifest.xml条目:uses-sdk android:minSdkVersion =“ 16” android:targetSdkVersion =“ 22”
SDK Tools for API22 already installed using "Android SDK manager" 已使用“ Android SDK管理器”安装了API22的SDK工具

Issue resolved. 问题解决了。 The issue was due to Microsoft Security Essentials real time protection. 该问题归因于Microsoft Security Essentials的实时保护。 I turned it off and it worked. 我将其关闭,并且它起作用了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM