Archimedes Trajano
Archimedes Trajano

Reputation: 41580

android-sdk has been officially discontinued upstream

When installing android sdk using home-brew I get this message

android-sdk has been officially discontinued upstream.

But I can't find an alternative package to use. Is there a different one I should be using?

Upvotes: 26

Views: 9131

Answers (2)

mattpr
mattpr

Reputation: 3260

If you don't want the full android-studio development app (Intellij IDE, etc) and just want the new command line tools...

Per the discontinuation notice for android-sdk...

This SDK Tools package is deprecated and no longer receiving updates. Instead, please use the new command-line tools package.

A quick search reveals that in homebrew land, this new "command-line tools" package is called android-commandlinetools.

$ brew remove android-sdk
$ brew install --cask android-commandlinetools

If you are looking for adb and such, these are "SDK Platform Tools" and can be installed using sdkmanager (which was installed by the new android-commandlinetools package)...

$ sdkmanager --install platform-tools

Depending on where sdkmanager installs platform-tools you might need to update your $PATH or add symlinks in order to run adb and other platform-tools without an absolute path.

...or if you just want adb/etc you can skip the full commandlinetools and install platform-tools directly with homebrew. This has the side benefit of ensuring the newly installed adb is within your $PATH and is probably the best option for people that aren't doing android development and just want the latest adb, fastboot, etc. The homebrew package for platform-tools is called android-platform-tools.

$ brew install --cask android-platform-tools

Upvotes: 35

gjgala
gjgala

Reputation: 9

Per https://developer.android.com/studio/releases/sdk-tools

Note: This SDK Tools package is deprecated and no longer receiving updates. Instead, please use the new command-line tools package.

check out https://developer.android.com/studio brew install android-studio

Upvotes: 0

Related Questions