Is there a way to install an older version of Android platform-tools?
Asked Answered
R

3

10

I have been hunting around for the afternoon to try to see if there is any way to install older versions of the Android platform-tools. I have tried via sdkmanager and by the older android version but all of them seem to always link to the latest version of platform-tools. I am trying to do this without Android Studio.

This also makes it difficult to create server's with the same version since it is constantly pulling the latest version when we provision a new system. I have looked at the release notes and noticed that depending on the build date our systems have different versions of the platform-tools.

https://developer.android.com/studio/releases/platform-tools

Questions:

  1. Is there a way to download an older version of platform-tools either via command line or on the web?
  2. Is there a way I am missing to specify which version of platform-tools you want to install when using sdkmanager?

Thank you

Revivalism answered 23/11, 2018 at 22:48 Comment(0)
M
20

Yes, you could download old version, https://dl.google.com/android/repository/platform-tools_r27.0.0-windows.zip is an example .

change the version number in the link to get your wanted version. another example https://dl.google.com/android/repository/platform-tools_r26.0.0-windows.zip

Edited: If you want to download specific platform tool via sdk manager, firstly uncheck unwanted platforms as below fig, and click apply. enter image description here

Then download platform tool again like below fig: enter image description here

Mahau answered 23/11, 2018 at 23:23 Comment(5)
I am looking for a command line interface option. dl.google.com/android/repository/… works though. Funny enough I tried this a few hours ago but maybe I made a typo when putting it in for 26.0.2. ThanksRevivalism
Use darwin instead of windows for mac os.Aposematic
@Aposematic it's linux instead of darwin. I.e.., dl.google.com/android/repository/…Drawer
Even though this works, the sdkmanager tools is not there. Which is disappointingDrawer
If anyone is looking for a link for MacOS, here it is - dl.google.com/android/repository/…Hooch
E
0

Additionally, if you want an old version of package tools, click on show package details and you're able to see old versions.

package tools

Endearment answered 18/6, 2023 at 16:13 Comment(0)
N
0

I can't write comment so I'm writing here:
(so, the vote up goes to the (life saver!) navylover's answer please, do not vote me)

The navylover's answer is absolutely right.
I copied-pasted the mentioned link to the browser's address bar, and saved the .zip file to PC.
https://dl.google.com/android/repository/platform-tools_r26.0.0-windows.zip

Note that r26 is the oldest possible to download version, and also supports all previous API versions.

On Windows, I tried all the drivers in the world! until I realized that Android 7 (Nougat)[API24] needed an older version of platform-tools to make ADB finally work!
I didn't realize it earlier because the FASTBOOT communication with PC was already worked fine, while the ADB was gave me "adb.exe has stopped working" error. (Although very strange!)

Τhank you very much!

Nichol answered 17/8 at 15:34 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.