rn-mac-android 开发环境部署

参考资源

http://facebook.github.io/react-native/docs/getting-started.html#content
http://reactnative.cn/docs/0.37/getting-started.html
http://blog.csdn.net/gz_jero/article/category/6223090

遇到的问题如下:

  1. adb command not found:adb命令存在platform-tools中;

解决:在.bash_profile 文件中配置如下.

export ANDROID_HOME=~/Library/Android/sdk
export PATH=${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools

2.关于sdk的安装慢(使用shadowscoks),安装失败,建议直接使用sdk manager进行安装.


android sdk

3.关于选取sdk,选择

可解决问题:No system images installed for this target

If you see "No system images installed for this target." under CPU/ABI, go back to your "SDK Manager" and click on "Show Package Details" under "SDK Platforms". You will then be able to install any missing system images, such as "Google APIs Intel Atom (x86)".
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容