简体   繁体   English

运行 react-native 应用程序时卡住

[英]Stuck when run react-native application

I run react-native application in emulator but when I run npx react-native run-android --no-jetifier , run stuck and do nothing:我在模拟器中运行 react-native 应用程序但是当我运行npx react-native run-android --no-jetifier时,运行卡住并且什么也不做:

在此处输入图像描述

My emulator:我的模拟器:

在此处输入图像描述

How to fix it?如何解决?

It won't work if there is a lib that requires jetifier eg.如果有一个需要 jetifier 的库,它将不起作用。 react-native-gesture-handler.反应本机手势处理程序。 If there is no lib as such then delete the node_modules and npm install and try again.如果没有这样的库,则删除 node_modules 和 npm 安装并重试。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM