After developing react native under windows and executing react native run Android
, the mobile phone will display a red screen prompt: could not get batchedbridge, make sure your bundle is packaged correctly
will be displayed
This situation is usually caused by the occupation of the 8081 port of the computer, because react native will start the nodejs service on the 8081 port, and the mobile debugging depends on this service
We can see what program occupies port 8081: 1. Execute netstat - AON | findstr "8081"
2
2. See that the 8064 program is listening on this port, and then execute tasklist | findstr 8064
task
You can see that the process name of 8064 is WiFi master.exe. It was originally WiFi sharing master, which occupied port 8081
3. Close the WiFi sharing master software, and then execute react native run Android
to run normally
Similar Posts:
- Error:java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind
- [Solved] Error: listen EADDRINUSE: address already in use 127.0.0.1:3000
- [Solved] Adb Start Error: adb server version (32) doesn’t match this client (39)
- adb server is out of date. killing [How to Solve]
- adb server version (31) doesn’t match this client (41); killing…
- [Solved] Android ADB server didn’t ACK * failed to start daemon *
- [Solved] ADB Connect Error: failed to start daemon
- [Solved] VUE npm run devevents.js:160 throw er; // Unhandled ‘error’ event listen EADDRIN…
- [Solved] events.js:183 throw er; // Unhandled ‘error’ event Error: listen EADDRINUSE 127….
- Android ADB server didn’t ACK * failed to start d