Error: spawn gradlew.bat ENOENT when running demo

See original GitHub issue

Describe 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:closed
  • Created 3 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
ethansharcommented, Sep 29, 2021

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

1reaction
lidord-wixcommented, Sep 19, 2021

@ethanshar - We put it in .gitignore in this PR - https://github.com/wix/react-native-ui-lib/pull/865, we might do a rethink about it.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found