Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update default Android SDK path for Mac #2771

Merged
merged 3 commits into from
May 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 3 additions & 11 deletions docs/developing/android.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,18 +46,10 @@ The Android SDK ships with <a href="https://developer.android.com/studio/command

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

1. Set the `ANDROID_SDK_ROOT` environment variable. This path should be the **Android SDK Location** used in the previous section.

For Mac:

```shell
$ export ANDROID_SDK_ROOT=$HOME/Android/sdk
```

For Linux/Windows:
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**.

```shell
$ export ANDROID_SDK_ROOT=$HOME/Android/Sdk
$ export ANDROID_SDK_ROOT=$HOME/Library/Android/sdk
```

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>.
Expand All @@ -72,7 +64,7 @@ In `~/.bashrc`, `~/.bash_profile`, or similar shell startup scripts, make the fo
```

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

### Creating an Android Virtual Device
Expand Down
4 changes: 2 additions & 2 deletions versioned_docs/version-v5/developing/android.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ The Android SDK ships with <a href="https://developer.android.com/studio/command

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

1. Set the `ANDROID_SDK_ROOT` environment variable. This path should be the **Android SDK Location** used in the previous section.
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**.

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

:::note

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

:::
Expand Down
14 changes: 3 additions & 11 deletions versioned_docs/version-v6/developing/android.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,18 +46,10 @@ The Android SDK ships with <a href="https://developer.android.com/studio/command

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

1. Set the `ANDROID_SDK_ROOT` environment variable. This path should be the **Android SDK Location** used in the previous section.

For Mac:

```shell
$ export ANDROID_SDK_ROOT=$HOME/Android/sdk
```

For Linux/Windows:
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**.

```shell
$ export ANDROID_SDK_ROOT=$HOME/Android/Sdk
$ export ANDROID_SDK_ROOT=$HOME/Library/Android/sdk
```

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>.
Expand All @@ -72,7 +64,7 @@ In `~/.bashrc`, `~/.bash_profile`, or similar shell startup scripts, make the fo
```

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

### Creating an Android Virtual Device
Expand Down