Skip to content
Advertisement

react-native run-android does not work :/


Running react-native run-android in windows but get this error:
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.   
  (node:8484) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use node --trace-warnings ... to show where the warning was created)
Jetifier found 896 file(s) to forward-jetify. Using 4 workers...
info JS server already running.
info Installing the app...
'gradlew.bat' n'est pas reconnu en tant que commande interne
ou externe, un programme ex�cutable ou un fichier de commandes.
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: spawn gradlew.bat ENOENT
    at notFoundError (C:cygwin64homeAbderrahmaneappnode_modulescross-spawnlibenoent.js:6:26)      
    at verifyENOENT (C:cygwin64homeAbderrahmaneappnode_modulescross-spawnlibenoent.js:40:16)      
    at ChildProcess.cp.emit (C:cygwin64homeAbderrahmaneappnode_modulescross-spawnlibenoent.js:27:25)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
info Run CLI with --verbose flag for more details.`

I have installed android studio and created a project and I also run the emulator and i did

create-react-native-app project
react-native init project
react-native start
react-native run-android

Advertisement

Answer

You could try this one react native environment setup from react native official documentation or this react native environment setup from tutorialspoint one

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement