windows下react-native android环境搭建注意事项

1.使用了genymotion建立模拟器(新增时模拟器时记得选网络,如下图)

 

与android stuido搭配使用教程:http://jingyan.baidu.com/article/915fc414ea858e51394b209d.html

genymotion配置使用自己的sdk不要用default了,否则会去下载

2.可能会出现8081端口被占用

netstat -ano|findstr 8081

taskkill /F /pid xxx

3.最后就是react-native run-android

记得勾选hotload(这样就可以边写边看结果了)

原文地址:https://www.cnblogs.com/tom-chang/p/5643392.html