How to resolve "adb server version doesn't match client"?

I’m using Unreal Engine for an android project. I have an existing android SDK installation on my machine. I’ve followed the instructions of setting up Nvidia CodeWorks/etc. Whenever I launch the editor I’m no longer able to monitor logs using adb. Typing adb devices “adb server version (36) doesn’t match this client (39); killing…” This only happens while the UE4 editor is active. As soon as I kill the UE4 editor everything returns back to normal.

As soon as the editor launches the Android Device Monitor spams this -
[2017-07-28 14:29:43 - DeviceMonitor] Adb connection Error:An existing connection was forcibly closed by the remote host
[2017-07-28 14:29:44 - DeviceMonitor] Connection attempts: 1

It doesn’t install on device either through the editor.

I just ended up pointing to my existing android SDK installation/etc and it resolved the issue. Unreal seems to be able to push to the device now.

This is very frustrating. I’m unable to use adb at all elsewhere while the editor is running.