Error: spawn gradlew.bat ENOENT when running demo
See original GitHub issueDescribe the bug
After cloning the repo, doing npm install in both demo directory and root, and running npm run android in root gave me this error. I cd into the android directory and try to run gradlew and it says it is not a recognized command.
To Reproduce
See above.
Device (please complete the following information)
Windows 10 Pro desktop
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (1 by maintainers)
Top Results From Across the Web
React Native Error: spawn gradlew.bat ENOENT
This error is because of your gradlew.bat file is corrupt try add new one then try again. you can find new file from...
Read more >Error in tns build android: 'spawn gradle.bat ENOENT' #1836
What this message means is, cli can't find the platforms/android/gradle.bat file and run it. Make sure the file exists. Could you provide us ......
Read more >npx react-native run-android build failed - You.com
I get this error when i run npx react-native run-android in folder. ... gradlew.bat installDebug --stacktrace > Configure project :app The ...
Read more >Fixing React native gradlew access error - Baraa Bytes
Now react native is able to access android SDK tools allowing it to run your app. export ANDROID_HOME=$HOME/Library/Android/sdk export PATH=$ ...
Read more >Source - GitHub
... **spawn:** resolve relative paths to prevent ENOENT errors ... Building plugin and running demo app fails if plugins has a surrounding gradle...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I don’t think there a real reason… IMO We can remove it from gitignore and add the it back and see if it solve the issue
@ethanshar - We put it in
.gitignorein this PR - https://github.com/wix/react-native-ui-lib/pull/865, we might do a rethink about it.