Skip to content

Commit f4306be

Browse files
docs(developing): update default Android SDK path (#2771)
Co-authored-by: Brandy Carney <[email protected]>
1 parent b43e71c commit f4306be

File tree

3 files changed

+8
-24
lines changed

3 files changed

+8
-24
lines changed

docs/developing/android.md

+3-11
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,10 @@ The Android SDK ships with <a href="https://developer.android.com/studio/command
4646

4747
In `~/.bashrc`, `~/.bash_profile`, or similar shell startup scripts, make the following modifications:
4848

49-
1. Set the `ANDROID_SDK_ROOT` environment variable. This path should be the **Android SDK Location** used in the previous section.
50-
51-
For Mac:
52-
53-
```shell
54-
$ export ANDROID_SDK_ROOT=$HOME/Android/sdk
55-
```
56-
57-
For Linux/Windows:
49+
1. Set the `ANDROID_SDK_ROOT` environment variable. This path should be the **Android SDK Location** used in the previous section. To find the SDK Location in Android Studio, click **File** > **Project Structure**. Select **SDK Location** in the left pane. The path is shown under **Android SDK location**.
5850

5951
```shell
60-
$ export ANDROID_SDK_ROOT=$HOME/Android/Sdk
52+
$ export ANDROID_SDK_ROOT=$HOME/Library/Android/sdk
6153
```
6254

6355
2. Add the Android SDK command-line directories to `PATH`. Each directory corresponds to the category of <a href="https://developer.android.com/studio/command-line/" target="_blank">command-line tool</a>.
@@ -72,7 +64,7 @@ In `~/.bashrc`, `~/.bash_profile`, or similar shell startup scripts, make the fo
7264
```
7365

7466
:::note
75-
For `apksigner` and `zipalign`, `$ANDROID_SDK_ROOT/build-tools&lt;version>` must also be added to `PATH`.
67+
For `apksigner` and `zipalign`, `$ANDROID_SDK_ROOT/build-tools<version>` must also be added to `PATH`.
7668
:::
7769

7870
### Creating an Android Virtual Device

versioned_docs/version-v5/developing/android.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ The Android SDK ships with <a href="https://developer.android.com/studio/command
4141

4242
In `~/.bashrc`, `~/.bash_profile`, or similar shell startup scripts, make the following modifications:
4343

44-
1. Set the `ANDROID_SDK_ROOT` environment variable. This path should be the **Android SDK Location** used in the previous section.
44+
1. Set the `ANDROID_SDK_ROOT` environment variable. This path should be the **Android SDK Location** used in the previous section. To find the SDK Location in Android Studio, click **File** > **Project Structure**. Select **SDK Location** in the left pane. The path is shown under **Android SDK location**.
4545

4646
```shell
4747
$ export ANDROID_SDK_ROOT=$HOME/Library/Android/sdk
@@ -60,7 +60,7 @@ In `~/.bashrc`, `~/.bash_profile`, or similar shell startup scripts, make the fo
6060

6161
:::note
6262

63-
For `apksigner` and `zipalign`, `$ANDROID_SDK_ROOT/build-tools&lt;version>` must
63+
For `apksigner` and `zipalign`, `$ANDROID_SDK_ROOT/build-tools<version>` must
6464
also be added to `PATH`.
6565

6666
:::

versioned_docs/version-v6/developing/android.md

+3-11
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,10 @@ The Android SDK ships with <a href="https://developer.android.com/studio/command
4646

4747
In `~/.bashrc`, `~/.bash_profile`, or similar shell startup scripts, make the following modifications:
4848

49-
1. Set the `ANDROID_SDK_ROOT` environment variable. This path should be the **Android SDK Location** used in the previous section.
50-
51-
For Mac:
52-
53-
```shell
54-
$ export ANDROID_SDK_ROOT=$HOME/Android/sdk
55-
```
56-
57-
For Linux/Windows:
49+
1. Set the `ANDROID_SDK_ROOT` environment variable. This path should be the **Android SDK Location** used in the previous section. To find the SDK Location in Android Studio, click **File** > **Project Structure**. Select **SDK Location** in the left pane. The path is shown under **Android SDK location**.
5850

5951
```shell
60-
$ export ANDROID_SDK_ROOT=$HOME/Android/Sdk
52+
$ export ANDROID_SDK_ROOT=$HOME/Library/Android/sdk
6153
```
6254

6355
2. Add the Android SDK command-line directories to `PATH`. Each directory corresponds to the category of <a href="https://developer.android.com/studio/command-line/" target="_blank">command-line tool</a>.
@@ -72,7 +64,7 @@ In `~/.bashrc`, `~/.bash_profile`, or similar shell startup scripts, make the fo
7264
```
7365

7466
:::note
75-
For `apksigner` and `zipalign`, `$ANDROID_SDK_ROOT/build-tools&lt;version>` must also be added to `PATH`.
67+
For `apksigner` and `zipalign`, `$ANDROID_SDK_ROOT/build-tools<version>` must also be added to `PATH`.
7668
:::
7769

7870
### Creating an Android Virtual Device

0 commit comments

Comments
 (0)