-
Notifications
You must be signed in to change notification settings - Fork 5.5k
refactor(getting-started): path to sdk binaries #2991
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
Changes from 4 commits
f73888d
a457ec9
2c9d7f1
df9a90b
bb6164b
0700fe5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -65,30 +65,30 @@ Next, select the "SDK Tools" tab and check the box next to "Show Package Details | |
|
|
||
| Finally, click "Apply" to download and install the Android SDK and related build tools. | ||
|
|
||
| You can also run the following command after setting ANDROID_HOME. | ||
| You can also run the following command after setting ANDROID_SDK_ROOT. | ||
|
|
||
| ```shell | ||
| sdkmanager "platforms;android-30" "system-images;android-30;default;x86_64" "system-images;android-30;google_apis;x86" | ||
| sdkmanager "cmdline-tools;latest" "build-tools;30.0.2" | ||
| ``` | ||
|
|
||
| <h4>3. Configure the ANDROID_HOME environment variable</h4> | ||
| <h4>3. Configure the ANDROID_SDK_ROOT environment variable</h4> | ||
|
|
||
| The React Native tools require some environment variables to be set up in order to build apps with native code. | ||
|
|
||
| Add the following lines to your `$HOME/.bash_profile` or `$HOME/.bashrc` (if you are using `zsh` then `~/.zprofile` or `~/.zshrc`) config file: | ||
|
|
||
| ```shell | ||
| export ANDROID_HOME=$HOME/Library/Android/sdk | ||
| export PATH=$PATH:$ANDROID_HOME/emulator | ||
| export PATH=$PATH:$ANDROID_HOME/tools | ||
| export PATH=$PATH:$ANDROID_HOME/tools/bin | ||
| export PATH=$PATH:$ANDROID_HOME/platform-tools | ||
| export ANDROID_SDK_ROOT=$HOME/Library/Android/sdk | ||
| export PATH=$PATH:$ANDROID_SDK_ROOT/emulator | ||
| # Commandline Path is determined by version "/cmdline-tools/[VERSION]/bin" latest is the default from Android studio but please check you setup within the SDK Manager | ||
| export PATH=$PATH:$ANDROID_SDK_ROOT/cmdline-tools/latest/bin | ||
|
||
| export PATH=$PATH:$ANDROID_SDK_ROOT/platform-tools | ||
| ``` | ||
|
|
||
| > `.bash_profile` is specific to `bash`. If you're using another shell, you will need to edit the appropriate shell-specific config file. | ||
|
|
||
| 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`. | ||
| 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`. | ||
|
|
||
| > 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**. | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.