Skip to content

Could not connect to development server. Using Android emulator.  #9089

@joshg111

Description

@joshg111

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions