Expo apk running on android gives metro error?

Expo apk running on android gives metro error?
android
Ethan Jackson

I made an expo apk using eas, now i installed the app on android connected through USB. It gives this weird error.

05-31 11:58:57.603 9520 10203 W ReactNativeJS: 05-31 11:58:57.603 9520 10203 W ReactNativeJS: Try the following to fix the issue: 05-31 11:58:57.603 9520 10203 W ReactNativeJS: - Ensure that Metro is running and available on the same network 05-31 11:58:57.603 9520 10203 W ReactNativeJS: - Ensure that your device/emulator is connected to your machine and has USB debugging enabled - run 'adb devices' to see a list of connected devices 05-31 11:58:57.603 9520 10203 W ReactNativeJS: - If you're on a physical device connected to the same machine, run 'adb reverse tcp:8081 tcp:8081' to forward requests from your device 05-31 11:58:57.603 9520 10203 W ReactNativeJS: - If your device is on the same Wi-Fi network, set 'Debug server host & port for device' in 'Dev settings' to your machine's IP address and the port of the local dev server - e.g. 10.0.1.1:8081 05-31 11:58:57.603 9520 10203 W ReactNativeJS: 05-31 11:58:57.603 9520 10203 W ReactNativeJS: URL: 192.168.203.149:8081 05-31 11:58:57.603 9520 10203 W ReactNativeJS: 05-31 11:58:57.603 9520 10203 W ReactNativeJS: Error: null 05-31 12:48:04.386 11735 11809 I ReactNativeJS: Running "main" 05-31 16:25:16.984 14209 14242 I ReactNativeJS: Running "main" 05-31 16:26:45.775 14371 14406 I ReactNativeJS: Running "main"

Answer

It must be a wrong apk build. you might have mistakenly built the development apk which needs your physical device to be connected with your system via USB Debugging or same internet network. Try building a preview apk which is the actual apk file that runs standalone.If you aim is to run the development apk try running your development server in your system first and then connect your physical device and your System via USB or connect both the devices to a common network.

Related Articles