Connect Bluestacks to Android Studio

后端 未结 7 1986
南旧
南旧 2020-12-07 13:07

I have recently shifted to android studio. I would like to know how I can test my apps in Bluestacks app player. I had already had the bluestacks connected and working with

7条回答
  •  一个人的身影
    2020-12-07 13:50

    For those people with (cannot connect to localhost:5555: No connection could be made because the target machine actively refused it. (10061) :

    Blustacks is listening at IPv4-Localhost-TCP-5555 (not IPv6). Most of the time Windows has IPv6 enabled by default and Localhost is solving ::1:

    If the client (ADB) tries to connect a server using localhost and IPv6 is enabled on the main network adapter, ADB will not connect to the server.

    So, you have two options :

    1- Change your ADB client TCP connection string to localhost IPV4 : adb connect 127.0.0.1

    OR :

    2-Disable IPV6 protocol from the main network adapter.

提交回复
热议问题