Could not find a connected Android device

HI @afwang below is the Appium logs .and I have update Android SDM and Platform tools and tools.

error: Error running wait-for-device

error: Error killing ADB server, going to see if it’s online anyway

info: [debug] Getting connected devices…

info: [debug] executing cmd: /Applications/android-sdk-macosx/platform-tools/adb -s adb server is out of date. killing… devices

info: [debug] Waiting for device to be ready and to respond to shell commands (timeout = 5)

info: [debug] executing cmd: /Applications/android-sdk-macosx/platform-tools/adb -s adb server is out of date. killing… wait-for-device

error: Error running wait-for-device

info: [debug] Retrying restartAdb
info: [debug] executing cmd: /Applications/android-sdk-macosx/platform-tools/adb -s adb server is out of date. killing… kill-server

error: Error killing ADB server, going to see if it’s online anyway

info: [debug] Getting connected devices…

info: [debug] executing cmd: /Applications/android-sdk-macosx/platform-tools/adb -s adb server is out of date. killing… devices

info: [debug] Waiting for device to be ready and to respond to shell commands (timeout = 5)

info: [debug] executing cmd: /Applications/android-sdk-macosx/platform-tools/adb -s adb server is out of date. killing… wait-for-device

info: [debug] Retrying restartAdb

error: Error running wait-for-device

info: [debug] executing cmd: /Applications/android-sdk-macosx/platform-tools/adb -s adb server is out of date. killing… kill-server

error: Error killing ADB server, going to see if it’s online anyway

info: [debug] Getting connected devices…

info: [debug] executing cmd: /Applications/android-sdk-macosx/platform-tools/adb -s adb server is out of date. killing… devices

info: [debug] Waiting for device to be ready and to respond to shell commands (timeout = 5)

info: [debug] executing cmd: /Applications/android-sdk-macosx/platform-tools/adb -s adb server is out of date. killing… wait-for-device

error: Error running wait-for-device

info: [debug] executing cmd: /Applications/android-sdk-macosx/platform-tools/adb -s adb server is out of date. killing… kill-server

error: Error killing ADB server, going to see if it’s online anyway

info: [debug] Getting connected devices…

info: [debug] executing cmd: /Applications/android-sdk-macosx/platform-tools/adb -s adb server is out of date. killing… devices

info: [debug] Waiting for device to be ready and to respond to shell commands (timeout = 5)

info: [debug] executing cmd: /Applications/android-sdk-macosx/platform-tools/adb -s adb server is out of date. killing… wait-for-device

error: Error running wait-for-device

info: [debug] Sent shutdown command, waiting for UiAutomator to stop…

warn: UiAutomator did not shut down fast enough, calling it gone

error: Failed to start an Appium session, err was: Error: Command failed: /bin/sh -c /Applications/android-sdk-macosx/platform-tools/adb -s adb server is out of date. killing… wait-for-device
adb I 19696 12245669 usb_osx.cpp:259] Found vid=04e8 pid=6860 serial=3208596b8cdb71d1
adb I 19696 12245669 usb_osx.cpp:259]
adb E 19696 12245669 usb_osx.cpp:331] Could not open interface: e00002c5
adb E 19696 12245669 usb_osx.cpp:265] Could not find device interface
error: could not install smartsocket listener: Address already in use
ADB server didn’t ACK

could not start server *
info: [debug] Cleaning up android objects
info: [debug] Cleaning up appium session

info: [debug] Error: Command failed: /bin/sh -c /Applications/android-sdk-macosx/platform-tools/adb -s adb server is out of date. killing… wait-for-device
adb I 19696 12245669 usb_osx.cpp:259] Found vid=04e8 pid=6860 serial=3208596b8cdb71d1
adb I 19696 12245669 usb_osx.cpp:259]
adb E 19696 12245669 usb_osx.cpp:331] Could not open interface: e00002c5
adb E 19696 12245669 usb_osx.cpp:265] Could not find device interface
error: could not install smartsocket listener: Address already in use
ADB server didn’t ACK

could not start server *

at ChildProcess.exithandler (child_process.js:751:12)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1015:16)
at Socket. (child_process.js:1183:11)
at Socket.emit (events.js:107:17)
at Pipe.close (net.js:485:12)
info: [debug] Responding to client with error: {“status”:33,“value”:{“message”:“A new session could not be created. (Original error: Command failed: /bin/sh -c /Applications/android-sdk-macosx/platform-tools/adb -s adb server is out of date. killing… wait-for-device\nadb I 19696 12245669 usb_osx.cpp:259] Found vid=04e8 pid=6860 serial=3208596b8cdb71d1\nadb I 19696 12245669 usb_osx.cpp:259] \nadb E 19696 12245669 usb_osx.cpp:331] Could not open interface: e00002c5\nadb E 19696 12245669 usb_osx.cpp:265] Could not find device interface\nerror: could not install smartsocket listener: Address already in use\nADB server didn’t ACK\n* could not start server \n)”,“killed”:false,“code”:255,“signal”:null,“cmd”:"/bin/sh -c /Applications/android-sdk-macosx/platform-tools/adb -s adb server is out of date. killing… wait-for-device",“origValue”:“Command failed: /bin/sh -c /Applications/android-sdk-macosx/platform-tools/adb -s adb server is out of date. killing… wait-for-device\nadb I 19696 12245669 usb_osx.cpp:259] Found vid=04e8 pid=6860 serial=3208596b8cdb71d1\nadb I 19696 12245669 usb_osx.cpp:259] \nadb E 19696 12245669 usb_osx.cpp:331] Could not open interface: e00002c5\nadb E 19696 12245669 usb_osx.cpp:265] Could not find device interface\nerror: could not install smartsocket listener: Address already in use\nADB server didn’t ACK\n could not start server *\n”},“sessionId”:null}
info: <-- POST /wd/hub/session 500 12857.029 ms - 1359

info: --> GET /wd/hub/status {}

info: [debug] Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.4.13”,“revision”:“c75d8adcb66a75818a542fe1891a34260c21f76a”}}}

info: <-- GET /wd/hub/status 200 2.486 ms - 105 {“status”:0,“value”:{“build”:{“version”:“1.4.13”,“revision”:“c75d8adcb66a75818a542fe1891a34260c21f76a”}}}

info: --> GET /wd/hub/status {}

info: [debug] Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.4.13”,“revision”:“c75d8adcb66a75818a542fe1891a34260c21f76a”}}}
info: <-- GET /wd/hub/status 200 1.585 ms - 105 {“status”:0,“value”:{“build”:{“version”:“1.4.13”,“revision”:“c75d8adcb66a75818a542fe1891a34260c21f76a”}}}

info: --> GET /wd/hub/status {}

info: [debug] Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.4.13”,“revision”:“c75d8adcb66a75818a542fe1891a34260c21f76a”}}}

info: <-- GET /wd/hub/status 200 2.155 ms - 105 {“status”:0,“value”:{“build”:{“version”:“1.4.13”,“revision”:“c75d8adcb66a75818a542fe1891a34260c21f76a”}}}
@Sid-SB