Could not connect to React Native development server on Android

前端 未结 28 1971
鱼传尺愫
鱼传尺愫 2020-11-30 22:10

When I run react-native run-android, it gives me the following error:

Could not connect to development server

28条回答
  •  一整个雨季
    2020-11-30 22:27

    We faced this issue, In order to fix this, solution is dead simple is below.

    1. Cancel the current process of“react-native run-android” by CTRL + C or CMD + C
    2. Close metro bundler window command line which opened automatically.
    3. Run the command again, “react-native run-android”.

    Basically this error tells that your current build got failed due to reasons like Code issue or dependency issue.

    Click here for more details

提交回复
热议问题