aboutsummaryrefslogtreecommitdiffhomepage
path: root/site/docs/tutorial/environment.md
diff options
context:
space:
mode:
authorGravatar Googler <noreply@google.com>2017-06-07 14:45:17 -0400
committerGravatar John Cater <jcater@google.com>2017-06-08 10:52:35 -0400
commitb343cda7ebf327f947479ac1c204a2b2ac766748 (patch)
tree9a8713ab3568e81c06b69256f1eb4630b2020948 /site/docs/tutorial/environment.md
parent28327710a72fb76214d2e4152373723d08506846 (diff)
Bring the Bazel mobile app tutorial up to date.
This depends on pull request #23 in bazelbuild/examples which modifies the tutorial\WORKSPACE and tutorial\ios-app\BUILD files to match this CL. Staged at: [] [] [] [] RELNOTES: None. PiperOrigin-RevId: 158296117
Diffstat (limited to 'site/docs/tutorial/environment.md')
-rw-r--r--site/docs/tutorial/environment.md63
1 files changed, 21 insertions, 42 deletions
diff --git a/site/docs/tutorial/environment.md b/site/docs/tutorial/environment.md
index 68548dfdfc..20a48701eb 100644
--- a/site/docs/tutorial/environment.md
+++ b/site/docs/tutorial/environment.md
@@ -10,8 +10,8 @@ The first step in this tutorial is to set up your environment.
Here, you'll do the following:
* Install Bazel
-* Install Android Studio and the Android SDK
-* Install Xcode (macOS (OS X) only)
+* Install Android Studio
+* Install Xcode (macOS only)
* Get the sample project from the GitHub repo
## Install Bazel
@@ -19,47 +19,26 @@ Here, you'll do the following:
Follow the [installation instructions](/docs/install.md) to install Bazel and
its dependencies.
-## Install the Android SDK tools
-
-Do the following:
-
-1. Download and install the
- [Android SDK Tools](https://developer.android.com/sdk/index.html#Other).
-
-2. Run the Android SDK Manager and install the following packages:
-
- <table class="table table-condensed table-striped">
- <thead>
- <tr>
- <td>Package</td>
- <td>SDK directory</td>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>Android SDK Platform Tools</td>
- <td><code>platform-tools</code></td>
- </tr>
- <tr>
- <td>Android SDK Build Tools</td>
- <td><code>build-tools</code></td>
- </tr>
- <tr>
- <td>Android SDK Platform</td>
- <td><code>platform</code></td>
- </tr>
- </tbody>
- </table>
-
- The SDK Manager is an executable named `android` located in the `tools`
- directory.
-
-## Install Xcode (OS X only)
-
-If you are following the steps in this tutorial on Mac OS X, download and
+## Install Android Studio
+
+Download and install Android Studio as described in [Install Android Studio](https://developer.android.com/sdk/index.html).
+
+The installer does not automatically set the `ANDROID_HOME` variable.
+Set it to the location of the Android SDK, which defaults to `$HOME/Android/Sdk/`
+.
+
+For example:
+
+`export ANDROID_HOME=$HOME/Android/Sdk/`
+
+For convenience, add the above statement to your `~/.bashrc` file.
+
+## Install Xcode (macOS only)
+
+If you are following the steps in this tutorial on macOS, download and
install [Xcode](https://developer.apple.com/xcode/downloads/). The Xcode
-download contains the iOS libraries, Objective-C compiler other tools
-required by Bazel to build the iOS app.
+download contains the iOS libraries, the Objective-C compiler, and other tools
+required by Bazel to build iOS apps.
## Get the sample project