App crash on opening it on android device. Build successfully but raising an error "Failed to connect to development server".
            Asked
            
        
        
            Active
            
        
            Viewed 897 times
        
    1
            
            
        - 
                    run `npm start ` under your project directory and try to open the app. – Kailash Oct 03 '22 at 07:26
- 
                    Tried but still no improvement – Vaishali Jain Oct 03 '22 at 08:44
1 Answers
0
            
            
        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:8081
- npx 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
 
    
    
        Engr.Aftab Ufaq
        
- 3,356
- 3
- 21
- 47
- 
                    adb reverse tcp:8081 tcp:8081 , after putting this command, it is saying. "zsh: command not found: adb" – Vaishali Jain Oct 03 '22 at 08:43
- 
                    
- 
                    check your path varaible. there is issue with your path varaibales. @VaishaliJain – Engr.Aftab Ufaq Oct 03 '22 at 08:56
- 
                    
