1

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

2
  • run npm start under your project directory and try to open the app. Commented Oct 3, 2022 at 7:26
  • Tried but still no improvement Commented Oct 3, 2022 at 8:44

1 Answer 1

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

Sign up to request clarification or add additional context in comments.

4 Comments

adb reverse tcp:8081 tcp:8081 , after putting this command, it is saying. "zsh: command not found: adb"
check your path varaible. there is issue with your path varaibales. @VaishaliJain
you can accept and vpvote this answer. thanks

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.