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?
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With