update standalone SDK installation instructions
This commit is contained in:
parent
453c0b0bbc
commit
831ca0bca3
@ -900,13 +900,14 @@ $DEVICE-stable</pre>
|
||||
quite out-of-date and should be avoided. To set up a minimal SDK installation at
|
||||
<code>~/android/sdk</code> without Android Studio:</p>
|
||||
|
||||
<pre>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</pre>
|
||||
<pre>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</pre>
|
||||
|
||||
<p>Set <code>ANDROID_HOME</code> 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</pre>
|
||||
<pre>export ANDROID_HOME="$HOME/android/sdk"
|
||||
export PATH="$HOME/android/sdk/cmdline-tools/latest/bin:$PATH"</pre>
|
||||
|
||||
<p>Make <code>cmdline-tools</code> responsible for updating itself:</p>
|
||||
|
||||
<pre>sdkmanager 'cmdline-tools;latest'</pre>
|
||||
|
||||
<p>Install platform-tools for tools like adb and fastboot:</p>
|
||||
|
||||
<pre>sdkmanager platform-tools</pre>
|
||||
|
Loading…
x
Reference in New Issue
Block a user