Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 349
Archimedes Trajano Avatar asked Oct 12 '20 05:10

Archimedes Trajano


People also ask

How do I fix Android SDK missing?

Quick fix: Go to the Tools –> SDK manager –> SDK tools. Deselect Hide obsolete packages option on the right bottom and further install Android SDK Tools(obsolete). A new folder named Tools is now generated in the SDK directory.


1 Answers

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...

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 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.

$ brew install android-platform-tools
like image 61
mattpr Avatar answered Oct 03 '22 04:10

mattpr