Skip to content

Commit 49e7cdb

Browse files
refactor(getting-started): path to sdk binaries (#2991)
1 parent 548330d commit 49e7cdb

File tree

2 files changed

+11
-22
lines changed

2 files changed

+11
-22
lines changed

docs/_getting-started-linux-android.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,23 +47,21 @@ Next, select the "SDK Tools" tab and check the box next to "Show Package Details
4747

4848
Finally, click "Apply" to download and install the Android SDK and related build tools.
4949

50-
<h4>3. Configure the ANDROID_HOME environment variable</h4>
50+
<h4>3. Configure the ANDROID_SDK_ROOT environment variable</h4>
5151

5252
The React Native tools require some environment variables to be set up in order to build apps with native code.
5353

5454
Add the following lines to your `$HOME/.bash_profile` or `$HOME/.bashrc` (if you are using `zsh` then `~/.zprofile` or `~/.zshrc`) config file:
5555

5656
```shell
57-
export ANDROID_HOME=$HOME/Android/Sdk
58-
export PATH=$PATH:$ANDROID_HOME/emulator
59-
export PATH=$PATH:$ANDROID_HOME/tools
60-
export PATH=$PATH:$ANDROID_HOME/tools/bin
61-
export PATH=$PATH:$ANDROID_HOME/platform-tools
57+
export ANDROID_SDK_ROOT=$HOME/Library/Android/sdk
58+
export PATH=$PATH:$ANDROID_SDK_ROOT/emulator
59+
export PATH=$PATH:$ANDROID_SDK_ROOT/platform-tools
6260
```
6361

6462
> `.bash_profile` is specific to `bash`. If you're using another shell, you will need to edit the appropriate shell-specific config file.
6563
66-
Type `source $HOME/.bash_profile` for `bash` or `source $HOME/.zprofile` to load the config into your current shell. Verify that ANDROID_HOME has been set by running `echo $ANDROID_HOME` and the appropriate directories have been added to your path by running `echo $PATH`.
64+
Type `source $HOME/.bash_profile` for `bash` or `source $HOME/.zprofile` to load the config into your current shell. Verify that ANDROID_SDK_ROOT has been set by running `echo $ANDROID_SDK_ROOT` and the appropriate directories have been added to your path by running `echo $PATH`.
6765

6866
> Please make sure you use the correct Android SDK path. You can find the actual location of the SDK in the Android Studio "Preferences" dialog, under **Appearance & Behavior****System Settings****Android SDK**.
6967

docs/_getting-started-macos-android.md

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -61,34 +61,25 @@ Select the "SDK Platforms" tab from within the SDK Manager, then check the box n
6161
- `Android SDK Platform 30`
6262
- `Intel x86 Atom_64 System Image` or `Google APIs Intel x86 Atom System Image`
6363

64-
Next, select the "SDK Tools" tab and check the box next to "Show Package Details" here as well. Look for and expand the "Android SDK Build-Tools" entry, then make sure that `30.0.2` is selected and check the "Android SDK Command-line Tools (latest)".
64+
Next, select the "SDK Tools" tab and check the box next to "Show Package Details" here as well. Look for and expand the "Android SDK Build-Tools" entry, then make sure that `30.0.2` is selected.
6565

6666
Finally, click "Apply" to download and install the Android SDK and related build tools.
6767

68-
You can also run the following command after setting ANDROID_HOME.
69-
70-
```shell
71-
sdkmanager "platforms;android-30" "system-images;android-30;default;x86_64" "system-images;android-30;google_apis;x86"
72-
sdkmanager "cmdline-tools;latest" "build-tools;30.0.2"
73-
```
74-
75-
<h4>3. Configure the ANDROID_HOME environment variable</h4>
68+
<h4>3. Configure the ANDROID_SDK_ROOT environment variable</h4>
7669

7770
The React Native tools require some environment variables to be set up in order to build apps with native code.
7871

7972
Add the following lines to your `$HOME/.bash_profile` or `$HOME/.bashrc` (if you are using `zsh` then `~/.zprofile` or `~/.zshrc`) config file:
8073

8174
```shell
82-
export ANDROID_HOME=$HOME/Library/Android/sdk
83-
export PATH=$PATH:$ANDROID_HOME/emulator
84-
export PATH=$PATH:$ANDROID_HOME/tools
85-
export PATH=$PATH:$ANDROID_HOME/tools/bin
86-
export PATH=$PATH:$ANDROID_HOME/platform-tools
75+
export ANDROID_SDK_ROOT=$HOME/Library/Android/sdk
76+
export PATH=$PATH:$ANDROID_SDK_ROOT/emulator
77+
export PATH=$PATH:$ANDROID_SDK_ROOT/platform-tools
8778
```
8879

8980
> `.bash_profile` is specific to `bash`. If you're using another shell, you will need to edit the appropriate shell-specific config file.
9081
91-
Type `source $HOME/.bash_profile` for `bash` or `source $HOME/.zprofile` to load the config into your current shell. Verify that ANDROID_HOME has been set by running `echo $ANDROID_HOME` and the appropriate directories have been added to your path by running `echo $PATH`.
82+
Type `source $HOME/.bash_profile` for `bash` or `source $HOME/.zprofile` to load the config into your current shell. Verify that ANDROID_SDK_ROOT has been set by running `echo $ANDROID_SDK_ROOT` and the appropriate directories have been added to your path by running `echo $PATH`.
9283

9384
> Please make sure you use the correct Android SDK path. You can find the actual location of the SDK in the Android Studio "Preferences" dialog, under **Appearance & Behavior****System Settings****Android SDK**.
9485

0 commit comments

Comments
 (0)