AndroidSDK icon indicating copy to clipboard operation
AndroidSDK copied to clipboard

Which `sdkmanager` to use???

Open thyrlian opened this issue 4 years ago • 4 comments

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

sdkmanager

thyrlian avatar May 30 '20 11:05 thyrlian

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)

matpag avatar Jun 19 '20 12:06 matpag

Lol, no versioning of documentation makes it so confusing

thyrlian avatar Jun 19 '20 12:06 thyrlian

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

matpag avatar Jun 19 '20 12:06 matpag

Thanks. The new link was already used in the Dockerfile here.

thyrlian avatar Jun 19 '20 13:06 thyrlian