Skip to content

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

Closed
@dotbloup

Description

@dotbloup

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions