Could not load exp:// Something went wrong

前端 未结 19 2307
挽巷
挽巷 2021-02-07 06:53

I have created a project using Expo XDE. I checked this Can't load expo app: Something went wrong but I have already enabled \"Draw over other apps\". It works https://expo.

相关标签:
19条回答
  • 2021-02-07 07:05

    Assumptions: Installed Expo (https://expo.io) on Computer via NPM/Yarn and installed Expo on Android/iPhone. Also, Phone is on the same wifi network as Computer.

    My Computer was connected via WiFI, and this was the problem for me. Windows: Commandline: $ ipconfig Find Wifi IP Address of your Computer. Mine was Ip v4 : 192.168.1.xxx Type in the web browser on the Phones web Browser URL : exp://192.168.1.xxx:19000 Then should see some text, which means the phone is connecting via the Network (good sign) Then open expo on Phone, and should see link via Clipboard. Click on Link via Clipboard which is inside the Expo program on the phone. Then it should load the App on your phone. This worked for me. P.s Follow instructions for giving Expo permission etc when it works for the first time.

    0 讨论(0)
  • 2021-02-07 07:09

    Ensure that your laptop and android device is connected to the same network and that should fix the issue, as it just did for me.

    0 讨论(0)
  • 2021-02-07 07:10

    In case you guys use firewall, make sure ports 19000 and 19001 are whitelisted.

    0 讨论(0)
  • 2021-02-07 07:10

    On the Start menu, click Run, type WF.msc, and then click OK.

    In the Windows Firewall with Advanced Security, in the left pane, right-click Inbound Rules, and then click New Rule in the action pane.

    In the Rule Type dialog box, select Port, and then click Next.

    In the Protocol and Ports dialog box, select TCP. Select All local ports, Click Next.

    In the Action dialog box, select Allow the connection, and then click Next.

    In the Profile dialog box, select any profiles that describe the computer connection environment when you want to connect to the Database Engine, and then click Next.

    In the Name dialog box, type a name and description for this rule, and then click Finish.

    0 讨论(0)
  • 2021-02-07 07:10

    check if you run VPN on your pc or your mobile turn it off and then restart. For me this solve my problem.

    0 讨论(0)
  • 2021-02-07 07:11

    You better open XDE Client and enable development mode. Then, click on the gray cog to make Host > LAN (Local area network - which means sharing packages over WiFi with a real device).

    Localhost option may work as well but according to Expo Debugging docs:

    If you are using LAN, make sure your device is on the same wifi network as your development machine. This may not work on some public networks. localhost will not work for iOS unless you are in the simulator, and it only works on Android if your device is connected to your machine via USB.

    Also, here is a visual informative answer that I wrote a few months ago that may also help: How do I run an app on a real iOS device using Expo?

    0 讨论(0)
提交回复
热议问题