Skip to content
warmhug edited this page Jun 7, 2018 · 1 revision

Android react-native env

无需 android studio

  1. 安装 git

  2. 安装 JDK:http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

  3. 安装 android-sdk/ndk:brew install android-sdk android-ndk

  4. 添加环境变量至 ~/.bashrc~/.zshrc

    export ANDROID_HOME=/usr/local/opt/android-sdk
    export ANDROID_SDK=/usr/local/opt/android-sdk
    export ANDROID_NDK=/usr/local/opt/android-ndk
    
  5. 配置 SDK,命令行:android,在弹出的 Android SDK Manager 里安装以下:

image

  1. 模拟器:
  • Genymotion
  • 自己创建:命令行 android avd
Clone this wiki locally