Skip to content

Instantly share code, notes, and snippets.

@tylergaw
Last active June 12, 2018 18:35
Show Gist options
  • Save tylergaw/8fc517cd70b4b1c9578c114a403ccdaf to your computer and use it in GitHub Desktop.
Save tylergaw/8fc517cd70b4b1c9578c114a403ccdaf to your computer and use it in GitHub Desktop.

NOTE: Don't bother, use Android Studio instead of everything below. blah

Installing and Using an Android Emulator for React Native Apps

For this setup, we'll assume you are not running any version Android Studio.

Guides

  • 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
  • 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 like export PATH=$PATH:/usr/local/share/android-sdk/tools
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment