gpt4 book ai didi

android - 无法连接到 Android 模拟器 Windows 操作系统上的开发服务器?

转载 作者:行者123 更新时间:2023-11-29 23:56:55 25 4
gpt4 key购买 nike

enter image description here

enter image description here

我已经 3 天无法解决这个问题了。相同的来源在 iOS 应用程序(当然是 Mac 系统)中运行良好。但是当我尝试在 Android 模拟器中运行时出现此错误

我已经尝试了互联网上提供的大部分解决方案。

1 - 开发设置 -> 添加本地 ip

2 - 清理 npm(删除 node_modules 并再次安装 npm)

3 - 全局卸载 npm 并重新安装

4 - 没用的 adb 命令也试过了

当我运行时,npm run start enter image description here

当在浏览器中转到我的本地 ip (192.168.1.61:8081) 时,我发现 React Package manager 没有运行。

最佳答案

在您的 Android 模拟器上打开移动数据。这可能会解决问题。

关于android - 无法连接到 Android 模拟器 Windows 操作系统上的开发服务器?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50272255/

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