Android emulator does not complete startup on Macbook Pro (Error while connecting to socket '127.0.0.1:1970')

杀马特。学长 韩版系。学妹 提交于 2019-12-05 10:01:01

A bit late, but I have something to say about this issue.

Seems the kernel which comes together with the SDK tries by default to find a multi-touch device. I have the same problem, and I tried to open a TCP socket at 127.0.0.1:1970, by issuing:

nc -l 1970

A this point I launched the emulator with the following options:

-verbose -debug all -show-kernel

and got a message from SDKCtl multi-touch about trying to establish an handshake with some device on the incriminated socket.

This led me to think about the need for a multi-touch device (I don't know in what way). So I looked for the options about the touch screen, and found that the touch screen is by default enabled as multi-touch (this is reported somewhere in the emulator outputs). To have it behaving as a simple touch-screen, one needs to add the following option when invoking the emulator:

-screen touch

At this point the emulator does not try to connect to 127.0.0.1:1970 anymore.

I add that in my case, even leaving the multi-touch on, the emulator was able to boot (after a long time - and this is true also without multi-touch).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!