我只是expo init
一个项目并启动它,然后扫描QR代码lan连接上的开发工具与我的物理设备 on Go,但它不起作用。我意识到世博go应用程序运行的是127.0.0.1,而不是pc ip。我怎么才能修好它?
Waiting on exp://127.0.0.1:19000
// It must be like this Waiting on exp://192.168.1.10:19000
› Scan the QR code above with Expo Go (Android) or the Camera app (iOS)
› Press a │ open Android
› Press w │ open web
› Press r │ reload app
› Press m │ toggle menu in Expo Go
› Press d │ show developer tools
› shift+d │ toggle auto opening developer tools on startup (disabled)
› Press ? │ show all commands
Logs for your project will appear below. Press Ctrl+C to exit.```
发布于 2021-05-06 02:10:36
我通过使用QR代码生成器来解决我的问题,然后键入exp://[MY_LAN_IP]:19000
而不是exp://127.0.0.1:19000
,然后扫描它。我不认为我的解决方案是一种正统的方法,但更好的物理比使用仿真器
发布于 2021-05-05 05:57:36
在expo start
之后,您应该看到这样的输出
› Waiting on exp://192.168.100.74:19000
› Scan the QR code above with Expo Go (Android) or the Camera app (iOS)
› Press a │ open Android
› Press w │ open web
› Press r │ reload app
› Press m │ toggle menu in Expo Go
› Press d │ show developer tools
› shift+d │ toggle auto opening developer tools on startup (disabled)
› Press ? │ show all commands
Logs for your project will appear below. Press Ctrl+C to exit.
正如你在第一行中看到的,它是Waiting on exp://192.168.100.74:19000
现在,请确保您的个人电脑和您的移动连接到同一个网络。
然后在您的Expo Go
应用程序中扫描QR代码并完成..。
此外,如果您同时登录了Expo GO
应用程序和正在开发的膝上型计算机/PC,那么您应该可以在Recently in Development
部分看到您的项目。
我建议你同时登录这两种设备。
PC用:
在项目文件夹中的终端中键入expo login
键入凭据并登录。
For Mobile:
在个人资料选项卡中登录到您的博览帐户。
https://stackoverflow.com/questions/67394607
复制相似问题