React Native 编译 jitsi-meet 开源项目在模拟器上的坑

React Native 编译 jitsi-meet 开源项目在模拟器上的坑

报错1:Error: ENOSPC: System limit for number of file watchers reached

修改系统监控文件数

的Ubuntu

sudo gedit /etc/sysctl.conf

在底部添加一行

fs.inotify.max_user_watches=524288

然后保存并退出!

sudo sysctl -p

解决!

报错2:Unable to load script.Make sure you are either running a Metro server or that your bundle ‘index.android.bundle’ is packaged correctly for release

step1: mkdir android/app/src/main/assets

step2: 重命名 index.android.js 为 index.js

mv index.android.js index.js

接着运行下面一行代码

react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/

step3: react-native run-android

以上只是安卓环境等等配置好了以后,运行react-native run-android 在安卓模拟器上最后一点小坑,后面还会补充

报错3:dl.google.com: 未知的名称或服务

网络连接出现问题

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值