【发布时间】:2016-04-28 14:45:31
【问题描述】:
我正在使用 Ionic Framework 构建一个 Android 应用,并尝试在具有 USB 调试功能的真实设备上运行它,就像这些教程中一样:
第一步
$ ionic platform add android
$ ionic build android
添加Android平台并使用上述命令构建APK后,它可以正常工作,没有错误。所以,我尝试下一步:
第二步
我通过调试模式连接了设备和 PC 以运行 android 设备。我运行了命令ionic run android。我收到以下错误消息L
$ 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!
我该如何解决这个问题?
我的离子信息列表:
$ 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
【问题讨论】:
-
为什么不使用 Android Studio 来完成这项任务?使用命令行更容易处理。
-
我想要真正的安装过程并真正运行设备。
-
你得到答案了吗?
-
我解决了,在PC上安装手机驱动后,查看
adb devices的设备列表。 -
尝试安装android studio然后从你的源文件夹打开platform/android文件夹然后调试它并解决你的错误这是纠正你错误的最佳方法
标签: cordova android-emulator ionic-framework