gpt4 book ai didi

android - 多个设备/模拟器 react native react native 启动错误

转载 作者:太空宇宙 更新时间:2023-11-03 11:36:30 25 4
gpt4 key购买 nike

我启动我的 Genymotion,然后通过 VS Code 在我的 react native 项目上执行 npm start。我收到这条消息:

>Press a to open android device or Emulator
>Press q to display QrCode
.
.

所以我按了 a 但我得到了这个错误:

Error running adb: more than one device/emulator

我该如何解决这个问题?我尝试 adb devices 查看我的设备,我看到了这个列表:

emulator-5562 host
emulator-5560 host
emulator-5558 host
192.168.X.X device

我的操作系统是 windows 10。我什至无法启动我的 react native hellow-world 仍然

编辑: 我关闭了我的系统,第二天一切正常。为什么?我通过以下命令再次检查了设备:adb devices 这次列表只包含一个设备:192.168.X.X device 所以我们必须只有一个设备作为模拟器但是!!我怎样才能在 adb 中只杀死一个设备?

最佳答案

尽管我只运行了一个 Genymotion 模拟器,但我还是遇到了这种情况。问题是我正在用笔记本电脑为手机充电,并且启用了 USB 调试。在我的手机中禁用 USB 调试解决了这个问题。

关于android - 多个设备/模拟器 react native react native 启动错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47248471/

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