启动genymotion模拟器,打包运行android studio的项目代码,结果报错:
adb server version (32) doesn't match this client (35); killing...
error: could not install *smartsocket* listener: Address already in use
ADB server didn't ACK
* failed to start daemon *
error: cannot connect to daemon
显示adb堆栈:命令行
export ADB_TRACE=all
adb I 4461 4461 adb_trace.cpp:169] Android Debug Bridge version 1.0.35
adb I 4461 4461 adb_trace.cpp:169] Revision 102d0d1e73de-android
adb I 4461 4461 adb_trace.cpp:169]
List of devices attached
adb I 4461 4461 adb_client.cpp:282] adb_query: host:devices
adb I 4461 4461 adb_client.cpp:126] _adb_connect: host:version
adb I 4461 4461 adb_io.cpp:99] writex: fd=3 len=16 30303063686f73743a76657273696f6e 000chost:version
adb I 4461 4461 adb_io.cpp:73] readx: fd=3 wanted=4
adb I 4461 4461 adb_io.cpp:89] readx: fd=3 wanted=4 got=4 4f4b4159 OKAY
adb I 4461 4461 adb_client.cpp:167] _adb_connect: return fd 3
adb I 4461 4461 adb_client.cpp:175] adb_connect: service host:devices
adb I 4461 4461 adb_io.cpp:73] readx: fd=3 wanted=4
adb I 4461 4461 adb_io.cpp:89] readx: fd=3 wanted=4 got=4 30303034 0004
adb I 4461 4461 adb_io.cpp:73] readx: fd=3 wanted=4
adb I 4461 4461 adb_io.cpp:89] readx: fd=3 wanted=4 got=4 30303230 0020
adb server version (32) doesn't match this client (35); killing...
adb I 4461 4461 adb_client.cpp:126] _adb_connect: host:kill
adb I 4461 4461 adb_io.cpp:99] writex: fd=3 len=13 30303039686f73743a6b696c6c 0009host:kill
adb I 4461 4461 adb_io.cpp:73] readx: fd=3 wanted=4
adb I 4461 4461 adb_io.cpp:89] readx: fd=3 wanted=4 got=4 4f4b4159 OKAY
adb I 4461 4461 adb_client.cpp:167] _adb_connect: return fd 3
adb I 4466 4466 adb_trace.cpp:169] Android Debug Bridge version 1.0.35
adb I 4466 4466 adb_trace.cpp:169] Revision 102d0d1e73de-android
adb I 4466 4466 adb_trace.cpp:169]
adb I 4466 4466 transport.cpp:575] socketpair: (3,5)
adb I 4466 4466 fdevent.cpp:152] fdevent_install (fdevent 5 A)
adb I 4466 4466 fdevent.cpp:198] fdevent_set: (fdevent 5 AR), events = 1
adb I 4466 4466 transport_local.cpp:308] transport: local client init
adb I 4466 4467 usb_linux.cpp:576] Created device thread
adb I 4466 4466 adb_auth_host.cpp:464] adb_auth_init
adb I 4466 4468 transport_local.cpp:126] transport: client_socket_thread() starting
adb I 4466 4466 adb_auth_host.cpp:327] home '/home/zdj'
adb I 4466 4466 adb_auth_host.cpp:355] user key '/home/zdj/.android/adbkey'
adb I 4466 4466 adb_auth_host.cpp:275] read_key '/home/zdj/.android/adbkey'
error: could not install *smartsocket* listener: Address already in use
ADB server didn't ACK
* failed to start daemon *
error: cannot connect to daemon
也没看出来啥头绪,只是提示端口被占用了。
反反复复的 adb kill-server --> start-server,还是同样的错误。
还有个原因:genymotion的adb设置,如图:
,关闭之前启动的genymotion模拟器,重新打开即可