2017-12-19 配置React-Native环境 本人在mac上配置RN环境,首先进入RN 官网,按照官网入门教程配置苹果开发环境 安装必须的软件 Homebrew Mac系统的软件管理工具.
This guide describes basic steps of the Android development environment setup that are required to run React Native android apps on an android emulator. We don't discuss developer tool configuration such as IDEs here.
Install the Android SDK (unless you have it). Install the Android SDK:. On Mac: brew install android-sdk.
On Linux and Windows: Define the ANDROIDHOME environment variable IMPORTANT: Make sure the ANDROIDHOME environment variable points to your existing Android SDK:. On Mac, add this to your /.bashrc, /.bashprofile or whatever your shell uses. Export ANDROIDHOME =. On Windows, go to Control Panel - System and Security - System - Change settings - Advanced - Environment variables - New Configure your SDK.
Open the Android SDK Manager ( on Mac start a new shell and run android); in the window that appears make sure you check:. Android SDK Build-tools version 23.0.1. Android 6.0 (API 23).
Android Support Repository. Click 'Install Packages' Install Genymotion Genymotion is much easier to set up than stock Google emulators. However, it's only free for personal use.
If you want to use the stock Google emulator, see below. Download and install. Open Genymotion.
It might ask you to install VirtualBox unless you already have it. Create a new emulator and start it. To bring up the developer menu press ⌘+M Alternative: Create a stock Google emulator. Start a new shell and run android; in the window that appears make sure you check:. Intel x86 Atom System Image (for Android 5.1.1 - API 22). Intel x86 Emulator Accelerator (HAXM installer).
![Mac Mac](/uploads/1/2/5/6/125620585/949286516.png)
Click 'Install Packages'., otherwise the emulator is going to be slow. Create an Android Virtual Device (AVD):. Run android avd and click on Create. With the new AVD selected, click Start. To bring up the developer menu press F2.