AndroidSDK
AndroidSDK copied to clipboard
Which `sdkmanager` to use???
At the time of writing, there are 3 different sdkmanager
binaries after updating.
$ANDROID_SDK_ROOT/tools/bin/sdkmanager --version #=> 26.1.1
$ANDROID_SDK_ROOT/cmdline-tools/tools/bin/sdkmanager --version #=> 3.6.0
$ANDROID_SDK_ROOT/cmdline-tools/latest/bin/sdkmanager --version #=> 4.0.0
They say here:
https://developer.android.com/studio/releases/sdk-tools
that the default tools
folder is discontinued.
Then here: https://developer.android.com/studio/command-line#tools-sdk they say that we should use the new cmdline-tools
folder.
But in the sdkmanager page, they still refers to the old tool location.
They have more than one problem with documentation 😂
In the end I think the tools in the cmdline-tools
folder should be the new ones. With tools as "stable" and latest as "next" (probably)
Lol, no versioning of documentation makes it so confusing
By the way, this is the url to download the new tools: https://dl.google.com/android/repository/commandlinetools-mac-6514223_latest.zip, which is exactly the same version of the one listed here https://developer.android.com/studio#cmdline-tools So the link at least is updated with the new tools
Thanks. The new link was already used in the Dockerfile here.