App crash on opening it on android device. Build successfully but raising an error "Failed to connect to development server".
1 Answer
There can be multiple issues with this.
- Check that your node package mananger is running close it, connect your mobile and run the following command.
adb reverse tcp:8081 tcp:8081npx react-native start
it my solve your problem.
second
- 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/alland then click on Debug server host & port for device enter your IP like thisxxx.xxx.xx.xx:8081and press R from your development server.
Hope this solve your porblem
4 Comments
Vaishali Jain
adb reverse tcp:8081 tcp:8081 , after putting this command, it is saying. "zsh: command not found: adb"
Engr.Aftab Ufaq
Engr.Aftab Ufaq
check your path varaible. there is issue with your path varaibales. @VaishaliJain
Engr.Aftab Ufaq
you can accept and vpvote this answer. thanks
npm startunder your project directory and try to open the app.