This is an automated email from the ASF dual-hosted git repository.
normanbreau pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-docs.git
The following commit(s) were added to refs/heads/master by this push:
new 488ead65e4 [Android] Set ANDROID_HOME instead of deprecated
ANDROID_SDK_ROOT (#1306)
488ead65e4 is described below
commit 488ead65e4e01be704205e5b97de610b66ab599a
Author: Mosab A <[email protected]>
AuthorDate: Tue May 23 14:39:42 2023 +0300
[Android] Set ANDROID_HOME instead of deprecated ANDROID_SDK_ROOT (#1306)
* [Android] Set ANDROID_HOME instead of deprecated ANDROID_SDK_ROOT
* Update index.md
* Update index.md
---
www/docs/en/dev/guide/platforms/android/index.md | 17 ++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)
diff --git a/www/docs/en/dev/guide/platforms/android/index.md
b/www/docs/en/dev/guide/platforms/android/index.md
index 8134459794..a3ea6bd9f8 100644
--- a/www/docs/en/dev/guide/platforms/android/index.md
+++ b/www/docs/en/dev/guide/platforms/android/index.md
@@ -88,6 +88,7 @@ In the Android Studio, open the **SDK Manager** (`Tools > SDK
Manager`) and conf
- Android's **SDK Platform** for your targeted API Level
- **Android SDK Build-Tools** under the **SDK Tools** tab, for the targeted
version.
+- **Android SDK Command-line Tools (latest)** under the **SDK Tools** tab, for
the latest version.
#### Android SDK Tools
@@ -108,14 +109,14 @@ Cordova's CLI requires specific environment variables so
it can function correct
The following variables must be set:
- `JAVA_HOME` - The environment variable to the location of your JDK
installation
-- `ANDROID_SDK_ROOT` - The environment variable to the location of your
Android SDK installation
+- `ANDROID_HOME` - The environment variable to the location of your Android
SDK installation
It is also recommended to update the `PATH` environment variable to include
the following directories.
- `cmdline-tools/latest/bin`
-- `emulator`
- `platform-tools`
- `build-tools`
+- `emulator`
- This is required for the `apksigner` and `zipalign` tools.
_**Note:** The directories above are generally located in the Android SDK
ROOT._
@@ -127,15 +128,16 @@ On a Mac or Linux, with a text editor, create or modify
the `~/.bash_profile` fi
To set an environment variable, add a line that uses `export` like so
(substitute the path with your local installation):
```bash
-export ANDROID_SDK_ROOT=/Development/android-sdk/
+export ANDROID_HOME=/Development/android-sdk/
```
To update your `PATH`, add a line resembling the following (substitute the
paths with your local Android SDK installation's location):
```bash
-export PATH=$PATH:$ANDROID_SDK_ROOT/platform-tools/
-export PATH=$PATH:$ANDROID_SDK_ROOT/cmdline-tools/latest/bin/
-export PATH=$PATH:$ANDROID_SDK_ROOT/emulator/
+export PATH=$PATH:$ANDROID_HOME/platform-tools/
+export PATH=$PATH:$ANDROID_HOME/cmdline-tools/latest/bin/
+export PATH=$PATH:$ANDROID_HOME/build-tools
+export PATH=$PATH:$ANDROID_HOME/emulator/
```
Reload your terminal to see this change reflected or run the following command:
@@ -174,7 +176,8 @@ Example paths (substitute the paths with your local Android
SDK installation's l
```txt
C:\Users\[your user]\AppData\Local\Android\Sdk\platform-tools
C:\Users\[your user]\AppData\Local\Android\Sdk\cmdline-tools\latest\bin
-C:\Users\[your user]\AppData\Local\Android\Sdk\tools\emulator
+C:\Users\[your user]\AppData\Local\Android\Sdk\build-tools
+C:\Users\[your user]\AppData\Local\Android\Sdk\emulator
```
Once all paths are added, click the **OK** button until all opened windows for
setting & editing environment variables are closed.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]