Appiums not working for me

I need help getting appium to work. I’m getting the following error:

his application has requested the Runtime to terminate it in an unusual way.

Please contact the application’s support team for more information.
could not read ok from ADB Server

  • could not start server *

    at ChildProcess.exithandler (child_process.js:751:12)
    at ChildProcess.emit (events.js:110:17)
    at maybeClose (child_process.js:1016:16)
    at Process.ChildProcess._handle.onexit (child_process.js:1088:5)
    info: [debug] Responding to client with error: {“status”:33,“value”:{“message”:“A new session could not be created. (Original error: Command failed: C:\Windows\system32\cmd.exe /s /c "C:\android-sdk_r24.4.1-windows\android-sdk-windows\platform-tools\adb.exe -s adb server version (32) doesn’t match this client (39); killing…\r wait-for-device"\nerror: could not install smartsocket listener: cannot bind to 127.0.0.1:5037: Only one usage of each socket address (protocol/network address/port) is normally permitted. (10048)\r\n\r\nThis application has requested the Runtime to terminate it in an unusual way.\nPlease contact the application’s support team for more information.\r\ncould not read ok from ADB Server\r\n* could not start server \r\n)",“killed”:false,“code”:4294967295,“signal”:null,“cmd”:“C:\Windows\system32\cmd.exe /s /c "C:\android-sdk_r24.4.1-windows\android-sdk-windows\platform-tools\adb.exe -s adb server version (32) doesn’t match this client (39); killing…\r wait-for-device"”,“origValue”:"Command failed: C:\Windows\system32\cmd.exe /s /c "C:\android-sdk_r24.4.1-windows\android-sdk-windows\platform-tools\adb.exe -s adb server version (32) doesn’t match this client (39); killing…\r wait-for-device"\nerror: could not install smartsocket listener: cannot bind to 127.0.0.1:5037: Only one usage of each socket address (protocol/network address/port) is normally permitted. (10048)\r\n\r\nThis application has requested the Runtime to terminate it in an unusual way.\nPlease contact the application’s support team for more information.\r\ncould not read ok from ADB Server\r\n could not start server *\r\n”},“sessionId”:null}
    info: ← POST /wd/hub/session 500 22001.020 ms - 1642