For this setup, we'll assume you are not running any version Android Studio.
- Installation https://www.decoide.org/react-native/docs/android-setup.html
- Review: Slightly outdated Android SDK install and usage docs, but Homebrew and the sdk guides you through the necessary changes
- Cliffnotes:
- Install JDK, install Android SDK, export sdk root env var in
.bash_profile
, install Java 8 if not installed - Pretty much stop at "Configure your SDK". It's too dated from there
- To fix the error when running
sdkmanager
: Create an empty file it says is missing~/.android/repositories.cfg
- Install JDK, install Android SDK, export sdk root env var in
- Usage https://developer.android.com/studio/run/emulator-commandline
emulator
location needs added to your path. in your.bash_profile
or.profile
add/usr/local/share/android-sdk/tools
to your Path. This is always different but mine looks likeexport PATH=$PATH:/usr/local/share/android-sdk/tools