加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

安装react native

发布时间:2020-12-15 04:38:23 所属栏目:百科 来源:网络整理
导读:1. 准备npm https://nodejs.org/en/ 下载,直接安装, git clone --recursive git://github.com/isaacs/npm.git cd npm node cli.js install npm -gf 2.准备android https://developer.android.com/intl/zh-cn/sdk/installing/index.html?pkg=tools 漫长的等

1. 准备npm

https://nodejs.org/en/

下载,直接安装,

git clone --recursive git://github.com/isaacs/npm.git 
cd npm 
node cli.js install npm -gf 

2.准备android


https://developer.android.com/intl/zh-cn/sdk/installing/index.html?pkg=tools




漫长的等待。



这是要逆天了吗? 7M每秒,呵呵

环境变量参看

http://blog.csdn.net/rflyee/article/details/8973529


创建 AwesomeProject

react-native init AwesomeProject

到这个目录, 执行react-native run-android

  • $ cd AwesomeProject
  • $ react-native run-android
错误开始了
Timed out while waiting for slave aapt process,try setting environment variable SLAVE_AAPT_TIM EOUT to a value bigger than 5 seconds
那就设置变量吧。
SLAVE_AAPT_TIM EOUT
30(没有单位)
再次执行

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读