adb server version doesn't match 🤖 Android

adb server version (41) doesn't match this client (39); killing...

Two different adb binaries are running — e.g. Android Studio’s SDK adb and another one on PATH (Homebrew, Genymotion, older SDK).

Seen on: Android

Meaning

Each client restarts the server with its own version, so devices disconnect repeatedly. Use one adb everywhere.

Common causes

  • Multiple adb installations on PATH
  • Tools bundling their own adb (Genymotion, Vysor, scrcpy)
  • Old platform-tools

⚡ Quick fix

  1. Find all adb binaries: which -a adb
  2. Point PATH and tools to the SDK’s platform-tools/adb
  3. Update platform-tools

Detailed fix by platform

Shell

  1. kotlin
    which -a adb
    export PATH="$HOME/Library/Android/sdk/platform-tools:$PATH"
    adb version

How to diagnose

  1. Binaries — which -a adb
  2. Tools — Which app ships its own adb?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.