1

App crash on opening it on android device. Build successfully but raising an error "Failed to connect to development server".

1 Answers1

0

There can be multiple issues with this.

  1. Check that your node package mananger is running close it, connect your mobile and run the following command.
  • adb reverse tcp:8081 tcp:8081
  • npx react-native start

it my solve your problem.

second

  1. if you want wireless debugging, shake your cellphone it will open the debug menu click on the setting , find your ip address witht he command ipconfig/all and then click on Debug server host & port for device enter your IP like this xxx.xxx.xx.xx:8081 and press R from your development server.

Hope this solve your porblem

Engr.Aftab Ufaq
  • 3,356
  • 3
  • 21
  • 47