Skip to content

environment variables on MacOS from "getting started" didn't work for me #13534

New issue

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

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

Already on GitHub? # to your account

Closed
dotbloup opened this issue Apr 17, 2017 · 1 comment
Closed
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@dotbloup
Copy link

in https://facebook.github.io/react-native/docs/getting-started.html when choosing Mobile OS: Android and Development OS: MacOS

I can read the following in ~/.profile:
export ANDROID_HOME=${HOME}/Library/Android/sdk
export PATH=${PATH}:${ANDROID_HOME}/tools
export PATH=${PATH}:${ANDROID_HOME}/platform-tools

However, on my mac Android SDK is located in the Library under my user folder on Mac OS Sierra.

I had to add the following to make it work:
export ANDROID_HOME=/Users/$(whoami)/Library/Android/sdk
export PATH=${PATH}:${ANDROID_HOME}/tools
export PATH=${PATH}:${ANDROID_HOME}/platform-tools

Did android SDK path moved?

@hramos
Copy link
Contributor

hramos commented May 31, 2017

Shouldn't {$HOME} and /Users/$(whoami) resolve to the same path on macOS?

@hramos hramos closed this as completed May 31, 2017
@facebook facebook locked as resolved and limited conversation to collaborators May 31, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 18, 2018
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

3 participants