-
Notifications
You must be signed in to change notification settings - Fork 25.1k
Could not connect to development server. Using Android emulator. #9089
Description
I just started a new project, with latest version of node.js, react, react-native, react-native-cli. My old projects were using some older versions of those packages and were working fine.
react-native init
cd
react-native run-android
I see the app gets installed on the emulator. When the app launches on the emulator after some time it give the error "Could not connect to development server".
My package.json:
{
"name": "MyProjectName",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start"
},
"dependencies": {
"react": "15.2.1",
"react-native": "0.30.0"
}
}
Output of "adb devices":
List of devices attached
emulator-5554 device
My Android sdk's are fairly new, but maybe I will try to reinstall all that stuff per react-native docs.
Btw, the react-native docs don't specify how to start the emulator. I start the emulator by launching Android Studio, and opening the AVD manager. This approach seems to work with my old projects.
Please let me know what other information is needed.