I would like use specific adb version for connect devices. For connect external emulator, i try to use adb connect localhost:5555, i've this result :

[adb]: adb server version (36) doesn't match this client (40); killing...
[adb]: * daemon started successfully

For install adb, i use apt install adb but i've only version 1.0.36.

Anyone know if i can install and use version 1.0.40 of adb ?

  • Why not using the one shipped with the Android SDK? – lelloman Apr 11 at 14:36
  • It's on 2 docker container, the version is not the same :/ – s-leg3ndz Apr 11 at 15:08
  • 1
    What I mean is that the adb shipped with the latest Android SDK is version 1.0.40, why are you installing it with apt instead of using that one? – lelloman Apr 11 at 15:10

In my Dockerfile I use:

  mkdir -p /usr/local/android-sdk \
  && cd /usr/local/android-sdk/ \
  && curl -OL https://dl.google.com/android/repository/platform-tools-latest-linux.zip \
  && unzip platform-tools-latest-linux.zip \
  && rm -f platform-tools-latest-linux.zip \
  && ln -s /usr/local/android-sdk/platform-tools/adb /usr/bin/adb \
  && export PATH=/usr/local/android-sdk/platform-tools:${PATH} \
  && echo "export PATH=/usr/local/android-sdk/platform-tools:${PATH}" >> /etc/profile \

Update your Android SDK Platform-Tools from Android Studio, then go to "/Sdk/platform-tools/" directory. Run ./adb --version The same way you can maintain multiple adb version file in different places.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.