I installed via apt-get install android-sdk
.
However, doing a find / -name sdkmanager
reveals there is no such binary anywhere on the system.
On my Mac, the binary exists in $ANDROID_HOME/tools/bin
.
However, on the Ubuntu system (the system with the issue), the binary does not exist there:
$ ls $ANDROID_HOME/tools/bin
e2fsck
fsck.ext4
mkfs.ext4
resize2fs
screenshot2
tune2fs
Where is the sdkmanager
?
Edit:
Not sure why the above didn't install sdkmanager
, however, one solution I found was to install manually (instead of via apt-get) by downloading the Linux files at https://developer.android.com/studio/#downloads under the "Command line tools only" header.
On Ubuntu 18.04, the binary sdkmanager
is indeed not included in the apt-package android-sdk
.
This worked for me:
android-sdk
via apt
, as you described:apt-get install android-sdk
ANDROID_HOME
if not done yet. For example:export ANDROID_HOME=/usr/lib/android-sdk
wget https://dl.google.com/android/repository/commandlinetools-linux-6609375_latest.zip
unzip commandlinetools-linux-6609375_latest.zip -d cmdline-tools
sudo mv cmdline-tools $ANDROID_HOME/
export PATH=$ANDROID_HOME/cmdline-tools/tools/bin:$PATH
By placing it as a subdirectory of ANDROID_HOME
, you can further omit having to provide argument --sdk_root
to sdkmanager
as described here: Android Command line tools sdkmanager always shows: Warning: Could not create settings