gpt4 book ai didi

cordova - 错误:打开模拟器时未在Windows 8上抛出任何模拟器图像(avds)

转载 作者:行者123 更新时间:2023-12-03 08:54:55 24 4
gpt4 key购买 nike

我在ionic框架中制作了一个cordova应用程序,我想在模拟器som发射的命令ionic emulate android中对其进行测试,并抛出以下错误
运行命令ionic模拟android时,Git Bash命令提示符出现错误。

错误:

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

关于cordova - 错误:打开模拟器时未在Windows 8上抛出任何模拟器图像(avds),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30682523/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com