Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在Windows下搭建React Native Android开发环境 #1

Open
zoey4lee opened this issue Nov 4, 2015 · 0 comments
Open

在Windows下搭建React Native Android开发环境 #1

zoey4lee opened this issue Nov 4, 2015 · 0 comments

Comments

@zoey4lee
Copy link
Owner

zoey4lee commented Nov 4, 2015

参考:http://my.oschina.net/jackzlz/blog/508210

当前使用的react-native是0.14
需要有几点注意
1、android sdk 必须安装项(如图):
android sdk
android sdk2

2、android sdk 安装配置环境变量必须要有ANDROID_HOME 然后再配置path
能在命令行输入adb即可

3、nodejs 版本4.1+ node -v 查看版本

4、项目路径\android\app\build.gradle
最后有一行是:compile 'com.android.support:appcompat-v7:23.1.0'
这个support:appcompat版本号对应 刚刚android sdk图片上面的Extras/Android Support Library版本号

5、node node_modules\react-native\packager\packager.js 运行服务后
再启动react-native run-android

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant