參考資源
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
遇到的問題如下:
-
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)".