-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<!DOCTYPE html><meta charset=utf-8><title>make index.html</title><meta content="" name=description><meta content="" name=author><meta content="" name=keywords><meta content="width=device-width,initial-scale=1" name=viewport><h1 id=android-headless-sdk-installation>Android <em>headless</em> SDK installation</h1><p>I wanted to install <em>Android SDK</em> without installing this ugly IDE. The main goal was to rebuild existing projects, so I didn't need something as heavy. The main difficulty came when I downloaded the actual sdk, and receive the following message from Google.<blockquote><p>Because you've downloaded the command line tools (not Android Studio), there are no install instructions.</blockquote><p>First things first. The SDK can be easily found on the download page of the Android developer website. Hidden at the end of the page in a section named <em><a href=https://developer.android.com/studio/index.html#command-tools>Get just the command line tools</a></em>.<p>We download a <code>.zip</code> file, because it's to complicated to provide a tarball, and unzip it somewhere, preferably <code>~/.android</code>.<p>Then we update your <code>~/.profile</code>, or wherever we put your env to include the following lines <em>mutatis mutandis</em> and reload our session.<div class=sourceCode><pre class="sourceCode bash"><code class="sourceCode bash"><span class=bu>export</span> <span class=va>ANDROID_HOME=</span><span class=st>"</span><span class=va>$HOME</span><span class=st>/.android"</span> | ||
<span class=bu>export</span> <span class=va>PATH=</span><span class=st>"</span><span class=va>$ANDROID_HOME</span><span class=st>/tools:</span><span class=va>$ANDROID_HOME</span><span class=st>/platform-tools:</span><span class=va>$PATH</span><span class=st>"</span></code></pre></div><p>Once we're here, the installation is straightforward once we now which command to run.<div class=sourceCode><pre class="sourceCode bash"><code class="sourceCode bash"><span class=ex>android</span> update sdk</code></pre></div><p>Then we must install some build tools.<div class=sourceCode><pre class="sourceCode bash"><code class="sourceCode bash"><span class=ex>sdkmanager</span> <span class=st>"platforms;android-23"</span> | ||
<span class=bu>export</span> <span class=va>PATH=</span><span class=st>"</span><span class=va>$ANDROID_HOME</span><span class=st>/tools:</span><span class=va>$ANDROID_HOME</span><span class=st>/tools/bin:</span><span class=va>$ANDROID_HOME</span><span class=st>/platform-tools:</span><span class=va>$PATH</span><span class=st>"</span></code></pre></div><p>Once we're here, the installation is straightforward once we now which command to run.<div class=sourceCode><pre class="sourceCode bash"><code class="sourceCode bash"><span class=ex>android</span> update sdk</code></pre></div><p>Then we must install some build tools.<div class=sourceCode><pre class="sourceCode bash"><code class="sourceCode bash"><span class=ex>sdkmanager</span> <span class=st>"platforms;android-23"</span> | ||
<span class=ex>sdkmanager</span> <span class=st>"build-tools;23.0.1"</span></code></pre></div><p>And also we must not forget to install all those <code>compat</code> libraries.<div class=sourceCode><pre class="sourceCode bash"><code class="sourceCode bash"><span class=ex>sdkmanager</span> <span class=st>"extras;android;m2repository"</span></code></pre></div><p>And <em>voilà</em>! |