BigSeal
BigSeal

Reputation: 1

Uncaught Error: java.io.IOException: Failed to download remote update

When using the npx expo start --lan, it is not possible to log into the project either through QR or through exp://... . Through --tunnel, the project is launched, but with restrictions or some kind of failures. If you run it via --localhost, the project starts normally. Everything is also fine using the web version and the emulator.

I'm definitely on the same network, I don't use VPN. I rebuilt the project several times, checked dependencies and updated packages. I checked the proxy, DNS, firewall. I did a test empty project, it doesn't work either. Added ANDROID_HOME and JAVA_HOME to ~./bashrc.The operating system used by EndeavourOS. Here are the packages that I use:

- ─ @babel/[email protected]
- ├── @expo/[email protected]
- ├── @expo/[email protected]
- ├── @gluestack-ui/[email protected]
- ├── @gluestack-ui/[email protected]
- ├── @gluestack-ui/[email protected]
- ├── @gluestack-ui/[email protected]
- ├── @gluestack-ui/[email protected]
- ├── @gluestack-ui/[email protected]
- ├── @gluestack-ui/[email protected]
- ├── @gluestack-ui/[email protected]
- ├── @gluestack-ui/[email protected]
- ├── @gluestack-ui/[email protected]
- ├── @gluestack-ui/[email protected]
- ├── @gluestack-ui/[email protected]
- ├── @gluestack-ui/[email protected]
- ├── @gluestack-ui/[email protected]
- ├── @gluestack-ui/[email protected]
- ├── @gluestack-ui/[email protected]
- ├── @gluestack-ui/[email protected]
- ├── @gluestack-ui/[email protected]
- ├── @gluestack-ui/[email protected]
- ├── @gluestack-ui/[email protected]
- ├── @gluestack-ui/[email protected]
- ├── @gluestack-ui/[email protected]
- ├── @gluestack-ui/[email protected]
- ├── @gluestack-ui/[email protected]
- ├── @gluestack-ui/[email protected]
- ├── @gluestack-ui/[email protected]
- ├── @gluestack-ui/[email protected]
- ├── @gluestack-ui/[email protected]
- ├── @gluestack-ui/[email protected]
- ├── @legendapp/[email protected]
- ├── @react-navigation/[email protected]
- ├── @react-navigation/[email protected]
- ├── @react-navigation/[email protected]
- ├── @types/[email protected]
- ├── @types/[email protected]
- ├── @types/[email protected]
- ├── @types/[email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]

Upvotes: 0

Views: 1058

Answers (5)

Helder Martins
Helder Martins

Reputation: 1

After attempting to connect to Expo Go multiple times, I searched for alternatives. I found options such as connecting via USB and using flags like --localhost and --tunnel.

To connect to Expo Go, you must use

exp://${your_ip}:8081

I prefer using the Android Studio Virtual Machine or a USB connection.

Upvotes: 0

Official Babyface
Official Babyface

Reputation: 1

Open Firewall in your system off the public network and it we work

Upvotes: 0

Zaiats Oleksandr
Zaiats Oleksandr

Reputation: 1

Facing the java.io.IOException: Failed to download remote update Error in Expo Go?

Here’s a solution that worked for me:


1. Use a USB Connection

  • Ensure USB debugging is enabled on your Android device.
  • To enable it, go to Developer options (unlock it by tapping Build number 7 times under About phone).

2. Run Expo with --localhost

Start your project using the following command:

npx expo start --localhost

3. Manually Enter the URL in Expo Go

  • Open the Expo Go app on your device.
  • Enter the following URL:
    exp://<your-local-IP>:8081
    
    Replace <your-local-IP> with your machine's IP address (e.g., 192.168.x.x).

4. Verify Connection with adb (If Needed)

If it still doesn’t work:

  • Check if your device is recognized by running:
    adb devices
    
  • If needed, forward the port with:
    adb reverse tcp:8081 tcp:8081
    

Quick Tip

If all else fails, try using the --tunnel flag:

npx expo start --tunnel

This method resolved the issue for me, and I hope it helps someone else struggling with the same problem! 🚀

Upvotes: -1

Rana Akash
Rana Akash

Reputation: 3

I faced the same issue, after rebooting the router, the problem was fixed. So reboot the router and try again.

Upvotes: 0

Helder Martins
Helder Martins

Reputation: 1

I noticed you're facing a similar issue. I'm currently experiencing the same problem. My last modifications were in December, and today I updated expo, expo-router and react-native to their lastest versions.

Upvotes: 0

Related Questions