为什么不在Android真实设备上进行离子应用程序测试? [英] Why not work Ionic app testing on android real device?

查看:190
本文介绍了为什么不在Android真实设备上进行离子应用程序测试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Ionic Framework构建了一个Android应用程序。我尝试使用USB Debugging运行真实设备。就像本教程一样:

I build a android app with Ionic Framework.I try to run real devices with USB Debugging.Like this tutorials:


http://www.neilberry.com/how-to-run-your-ionic-app-on-real-devices/?s=2015-08-24 -how-to-your-your-ionic-app-on-real-devices

http://junerockwell.com/how-to-run-ionic-on-real-devices/

Step-1


$ ionic platform add android

$ ionic build android

添加android平台并使用上述命令构建apk for app后,正常工作,没有错误。所以,我尝试下一步步骤。

After adding android platform and building apk for app with above command, work correctly with no error.So, I try to next step.

步骤2

我通过Debugging心情连接设备和PC来运行android设备。我运行命令 ionic run android 。我得到以下错误信息。

I connected device and PC via Debugging mood to run android devices.I run command ionic run android.I get the below error message.


$ ionic run android

ANDROID_HOME = C:\ Anroid\sdk
JAVA_HOME = C:\Program Files\java\jdk1.8.0_25
警告:没有目标指定,部署到模拟器
警告:未指定模拟器,默认为Nexus_5_API_23_x86
等待模拟器...
模拟器:错误:x86模拟当前需要硬件加速!
请确保英特尔HAXM已正确安装和使用。
CPU加速状态:未安装HAX内核模块!

我该如何解决这个问题问题?

How can I solve this problem?

我的离子信息列表:


$ ionic info

您的系统信息:
Cordova CLI:5.4。 1
Gulp版本:CLI版本3.9.0
Gulp本地:本地版本3.9.0
离子版本:1.2.4
Ionic CLI版本:1.7.13
Ionic App Lib版本:0.6.5
操作系统:Windows 8.1
节点版本:v4.2.4


推荐答案

也许您可以尝试运行 adb start-server 。我知道我需要先执行此操作才能在 chrome:// inspect /#devices 中查看我的设备。你当然需要adb,它可能来自Android SDK。

Maybe you can try running adb start-server. I know I need to do this first before being able to see my device in chrome://inspect/#devices. You of course need adb which probably comes from the Android SDK.

这篇关于为什么不在Android真实设备上进行离子应用程序测试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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