From 831ca0bca335460a4677b6d9e9cc0d88d26ad577 Mon Sep 17 00:00:00 2001
From: Daniel Micay ~/android/sdk
without Android Studio:
mkdir -p ~/android/sdk/cmdline-tools -cd ~/android/sdk/cmdline-tools -curl -O https://dl.google.com/android/repository/commandlinetools-linux-6514223_latest.zip -echo 'ef319a5afdb41822cb1c88d93bc7c23b0af4fc670abca89ff0346ee6688da797 commandlinetools-linux-6514223_latest.zip' | sha256sum -c -unzip commandlinetools-linux-6514223_latest.zip -rm commandlinetools-linux-6514223_latest.zip -mv tools latest+
mkdir -p ~/android/sdk/bootstrap +cd ~/android/sdk/bootstrap +curl -O https://dl.google.com/android/repository/commandlinetools-linux-7583922_latest.zip +echo '124f2d5115eee365df6cf3228ffbca6fc3911d16f8025bebd5b1c6e2fcfa7faf commandlinetools-linux-7583922_latest.zip' | sha256sum -c +unzip commandlinetools-linux-7583922_latest.zip +cmdline-tools/bin/sdkmanager 'cmdline-tools;latest' --sdk_root=$HOME/android/sdk +cd .. +rm -r bootstrap
Set ANDROID_HOME
to point at the SDK installation in your current
shell and shell profile configuration. You also need to add the
@@ -915,10 +916,6 @@ mv tools latest
export ANDROID_HOME="$HOME/android/sdk" export PATH="$HOME/android/sdk/cmdline-tools/latest/bin:$PATH"-
Make cmdline-tools
responsible for updating itself:
sdkmanager 'cmdline-tools;latest'-
Install platform-tools for tools like adb and fastboot:
sdkmanager platform-tools