0

I run react-native application in emulator but when I run npx react-native run-android --no-jetifier, run stuck and do nothing:

enter image description here

My emulator:

enter image description here

How to fix it?

leonheess
  • 16,068
  • 14
  • 77
  • 112
Rizal Fahlepi
  • 69
  • 1
  • 5
  • Vote on [this proposal](https://meta.stackoverflow.com/questions/354583/disentangle-the-yarn) to ease the tag confusion around [yarn] and [yarnpkg]. – leonheess Feb 11 '20 at 16:37

1 Answers1

0

It won't work if there is a lib that requires jetifier eg. react-native-gesture-handler. If there is no lib as such then delete the node_modules and npm install and try again.

Ishita Singh
  • 297
  • 1
  • 6
  • it started project when I run `react-native init AppName`, if I not use `jetifier`, run still stuck and I get this message ```info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag. Jetifier found 863 file(s) to forward-jetify. Using 4 workers...``` – Rizal Fahlepi Oct 28 '19 at 10:03
  • Follow this accepted answer https://stackoverflow.com/questions/57048978/failed-to-run-jetifier-react-native – Ishita Singh Oct 28 '19 at 10:11