当我在真实设备上进行测试时,为什么我的Android应用程序无法正常工作? [英] Why isn't my Android app working when I test it on a real device?

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

问题描述

我正在使用Ionic Framework构建一个Android应用程序,并试图通过USB调试在真实设备上运行它,就像这些教程中一样:

I'm building an Android app with Ionic Framework, and am trying to run it on a real device with USB debugging, like in these tutorials:

http://junerockwell.com/how-to-在实际设备上运行ionic/

第1步

$ ionic platform add android

$ ionic build android

在添加了Android平台并使用上述命令构建了APK之后,它可以正常工作且没有错误.因此,我尝试下一步:

After adding the Android platform and building an APK with the above commands, it works correctly with no error. So, I try the next step:

第2步

我通过调试模式将设备和PC连接起来以运行android设备.我运行了命令ionic run android.我收到以下错误消息L

I connected device and PC via Debugging mode to run android devices. I ran the command ionic run android. I get the below error messageL

$ ionic run android

ANDROID_HOME=C:\Android\sdk JAVA_HOME=C:\Program Files\java\jdk1.8.0_25 WARNING : No target specified, deploying to emulator WARNING : no emulator specified, defaulting to Nexus_5_API_23_x86 Waiting for emulator... emulator: ERROR: x86 emulation currently requires hardware acceleration! Please ensure Intel HAXM is properly installed and usable. CPU acceleration status: HAX kernel module is not installed!

ANDROID_HOME=C:\Android\sdk JAVA_HOME=C:\Program Files\java\jdk1.8.0_25 WARNING : No target specified, deploying to emulator WARNING : no emulator specified, defaulting to Nexus_5_API_23_x86 Waiting for emulator... emulator: ERROR: x86 emulation currently requires hardware acceleration! Please ensure Intel HAXM is properly installed and usable. CPU acceleration status: HAX kernel module is not installed!

我该如何解决这个问题?

How can I solve this problem?

我的离子信息列表:

$ ionic info

Your system information: Cordova CLI: 5.4.1 Gulp version: CLI version 3.9.0 Gulp local: Local version 3.9.0 Ionic Version: 1.2.4 Ionic CLI Version: 1.7.13 Ionic App Lib Version: 0.6.5 OS: Windows 8.1 Node Version: v4.2.4

Your system information: Cordova CLI: 5.4.1 Gulp version: CLI version 3.9.0 Gulp local: Local version 3.9.0 Ionic Version: 1.2.4 Ionic CLI Version: 1.7.13 Ionic App Lib Version: 0.6.5 OS: Windows 8.1 Node Version: v4.2.4

推荐答案

此错误与离子框架无关因为 Android SDK Manager 上未安装HAXM installer.

This error isn't related to ionic frameworks because HAXM installer isn't installed on Android SDK Manager.

这个问题已经在这里有了答案: 使用AMD处理器启动AVD时出错.

This question already has an answer here: Error in launching AVD with AMD processor.

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

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