adb socket not working and daemon

后端 未结 7 1003
遇见更好的自我
遇见更好的自我 2021-02-04 08:50

I am getting this type of error

error: could not install smartsocket listener: cannot bind to 127.0.0.1:5037: Only one usage of each socket ad

7条回答
  •  无人及你
    2021-02-04 09:17

    Easiest Way! I just ran into this issue trying to connect a React-Native App to an Android Studio emulator. If you read the error message it tells you that "Only one usage of each socket address (protocol/network address/port) is normally permitted." So you can assume that something other than React-Native is also attempting to connect to the emulator.

    Terminate The Connections:

    1. Leave the emulator running.

    2. Close out of and uninstall any Android Studio/Eclipse Apps you have on the emulator. This terminates apps trying to connect.

    3. Close Eclipse or Android Studio if either are running. Android Studio doesn't have to be open in order for the emulator to work (This is important). This terminates software trying to connect.

    After doing so I went back into my React-Native App and connected to Expo no problem.

    All you have to do is terminate all connections. However you so choose.

提交回复
热议问题