1. 下载Android Studio , 解压缩到本地,vi bin/idea.property, 添加isable.android.first.run=true, 打开 Andriood studio 欢迎界面
2. Configure->settings->http proxy 设置本地代理 mirrors.neusoft.edu.cn:80
3. 下载 Android SDK 最新版本 解压缩到本地
4. 设置Android SDK liang 环境变量.
export ANDROID_HOME=/opt/Software/android-sdk
export PATH=${PATH}:${ANDROID_HOME}/tools
5. Configure -》Settings->SDK Manager 配置SDK PATH到第三部的目录.
6. 打开SDK Manager Standalone Console 选择要加载的组建
https://facebook.github.io/react-native/docs/getting-started.html
1. 安装 npm 和node 参照网上资源
2. npm install -g react-native-cli
安装reactnative
3. react-native init HelloWorld2 新建工程
4. cd Hell
5. react-native run-android
一开始编译的时候报错
Could not find com.android.support:appcompat-v7:23.0.1.
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/android-setup.html
原文:http://www.cnblogs.com/ygshen/p/5988225.html