如何解决在 android 设备中 react native 运行新项目时出现的问题 [英] How to solve issue when running new project in react native in android device

查看:41
本文介绍了如何解决在 android 设备中 react native 运行新项目时出现的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 react native 的初学者,我在 react-native 中创建了一个新项目,一段时间工作正常,多次在模拟器或设备中显示以下错误,请帮助解决问题,!http://prntscr.com/o9zv7t

I'm beginner for react native,I'm create a new project in react-native some time working fine,many time showing following errors in emulator or device,please help to fix the issue, !http://prntscr.com/o9zv7t

这些错误发生了很多次,我不知道是什么问题!http://prntscr.com/oa016k

these error to occur many time ,I dnt know what is the problem !http://prntscr.com/oa016k

以下版本均安装React native

The following version are installed React native

react-native-cli: 2.0.1反应原生:0.59.10节点 v9.11.2我正在使用 ubuntu 操作系统

react-native-cli: 2.0.1 react-native: 0.59.10 node v9.11.2 I'm using ubuntu os

推荐答案

第一个错误发生在您的设备与系统失去连接时,您只需要运行 react-native run-android 和连接将再次建立.

The first error occurs when your device lost connection from the system for that you just need to run react-native run-android and the connection will establish again.

第二个错误你只需要通过运行这个命令来扩展 max_user_watches 的限制:

The second error you just need to expand the limit of max_user_watches by running this command:

fs.inotify.max_user_watches=524288

有关更多详细信息,请转到 这里

for more detailed info go here

这篇关于如何解决在 android 设备中 react native 运行新项目时出现的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆