我正在 ionic 框架中制作一个 cordova 应用程序,我想在模拟器 somfired 命令中测试它ionic emulate android
它引发了以下错误
运行命令 ionic emulate android 时,Git Bash 命令提示符出现错误。
Error:
c:\Users\work\biziHiveMobile\platforms\android\cordova\node_modules\q\q.js:126
throw e;
^
ERROR : No emulator images (avds) found.
1. Download desired System Image by running: c:\Users\work\AppData\Local\Android\android-sdk\tools\android.BAT sdk
2. Create an AVD by running: c:\Users\work\AppData\Local\Android\android-sdk\tools\android.BAT avd
HINT: For a faster emulator, use an Intel System Image and install the HAXM device driver
Error: c:\Users\work\biziHiveMobile\platforms\android\cordova\run.bat: Command failed with exit code 1
at ChildProcess.whenDone (c:\Users\work\AppData\Roaming \npm\node_modules\cor
dova\node_modules\cordova-lib\src\cordova\superspawn.js:131:23)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1015:16)
at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
此错误出现在 Windows 8 PC 上。我已经将我的 android SDK 更新到最新版本。我还从 android sdk 的额外功能中添加了模拟器加速器。但这个错误还是来了。任何人都知道如何在 Windows PC 上解决这个问题
在你的终端中尝试运行android avd
创建你的模拟器并尝试ionic emulate android
again
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)