Skip to content

Commit

Permalink
docs(developing): update default Android SDK path (#2771)
Browse files Browse the repository at this point in the history
Co-authored-by: Brandy Carney <[email protected]>
  • Loading branch information
juliendecoster and brandyscarney authored May 26, 2023
1 parent b43e71c commit f4306be
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 24 deletions.
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

1 comment on commit f4306be

@vercel
Copy link

@vercel vercel bot commented on f4306be May 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ionic-docs – ./

ionic-docs-ionic1.vercel.app
ionic-docs-git-main-ionic1.vercel.app
ionic-docs-gqykycf8t.vercel.app

Please sign in to comment.