"-no-jetifier" error when starting React-Native run-android

Asked

Viewed 466 times

-1

I had already done the installation of android studio to use the expo, I’m trying to emulate android with React-Native cli

When giving the command: React-Native run-android

the following error appears: info Running jetifier to migrate Libraries to Androidx. You can disable it using "--no-jetifier" flag. Jetifier found 864 file(s) to forward-jetify. Using 4 Workers... info JS server already running. error ENOENT: no such file or directory, open 'app build Intermediates merged_manifests debug Androidmanifest.xml'. Run CLI with --verbose flag for more Details. Error: ENOENT: no such file or directory, open 'app build Intermediates merged_manifests debug Androidmanifest.xml' at Object.openSync (Fs.js:457:3) at Object.readFileSync (Fs.js:359:35) at getLaunchPackageName (C: Users Arthu desktop projects cli node_modules@react-native-community cli-Platform-android build Commands runAndroid getLaunchPackageName.js:161:33) at buildAndRun (C: Users Arthu desktop projects cli node_modules@react-native-community cli-Platform-android build Commands runAndroid index.js:163:63) at C: Users Arthu desktop projects cli node_modules@react-native-community cli-Platform-android build Commands runAndroid index.js:135:12 at processTicksAndRejections (Internal/process/task_queues.js:97:5) at async Command.handleAction (C: Users Arthu desktop projects cli node_modules@react-native-community cli build index.js:182:9)

1 answer

0

This is Arthur. I had the same problem. However some test app worked perfectly, and just as I was going by my idea in practice, poof, this error appeared.
I decided by copying the BUILD folder (on : %your project% android app Build) from a project (the ones I was testing) to the new project that I realized I didn’t have her on the same path. There you go. In the first attempt it gave an error due to the name of the project. In the second it ran good and without errors.
I don’t know if it’s the best practice but it worked for me.

  • My project’s App folder doesn’t have a Build folder, where can I get one? I recently formatted my pc

  • does the following. Reinstall only the React-Native cli. In mine I also noticed some errors. Ai when reinstalled and created a new project. It came back good

Browser other questions tagged

You are not signed in. Login or sign up in order to post.