无法加载EXPO应用:出了点问题 [英] Can't load expo app: Something went wrong

查看:142
本文介绍了无法加载EXPO应用:出了点问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用exp init MyApp命令创建了 expo 应用,并通过在exp start来启动了该应用>目录.

然后,我要扫描使用

查看日志显示未捕获的错误:无法加载exp://...".

expo打包程序控制台输出中没有错误.

它以前有时可以工作.

解决方案

对我来说,通过WiFi运行时出现了问题,

  • 在接口指标"中输入10
  • 单击确定"
  • I've created an expo app with exp init MyApp command and started it by running exp start in MyApp directory.

    Then I'm scanning barcode which was printed in console with expo mobile app on android device.

    Then "Something went wrong" screen is rendered instead of the app.

    View log shows "Uncaught Error: Couldn't load exp://.....".

    No errors in expo packager console output.

    It used to work sometimes ago.

    解决方案

    For me the problem was happening when running over WiFi, as the tools always use the your first connection (you can check it by running ipconfig) and my first connection was internet.

    If that's you case you may try this workaround for changing you connections priority:

    1. Go to Control Panel > Network and Internet > Network Connections
    2. Right click the desired connection (Higher Priority Connection)
    3. Click Properties > Internet Protocol Version 4
    4. Click Properties > Advanced
    5. Uncheck 'Automatic Metric'
    6. Enter 10 in 'Interface Metric'
    7. Click OK

    这篇关于无法加载EXPO应用:出了点问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆