When I run "react-native run-android",it gives me error:"could not connect to development server...".-- The red screen
- OS: Windows 7
- node version:8.2.1
- npm version:4.1.2
- react-native version:0.47.1
- react-native-cli version:2.0.1
- android device and emulator version: 5.1.1
i followed following command:
- react-native init ProjectName
- cd ProjectName
- react-native run-android
And this makes the package server run automatically. But I am not able to access the package server from browser on the machine and the mobile.
My android device connected to computer has debugging enabled i checked it using adb devices command. Usb debug is on.
I tried running the project on real device and on emulator. On Both I got error: "Unable to load script from assets 'index.android.bundle' Make sure your bundle is packaged correctly or you're running a package server'.
reloading i get the error: "Could not connect to development server."
Then i set the host and port number on development setting on both and got the error "Could not connect to development server."
So how to fix the red error screen issue?Any suggestion is appreciated!