Skip to content
Discussion options

You must be logged in to vote

Your error is not caused by permissions - ./gradlew: cannot execute: required file not found

The failure happens because Linux cannot locate or interpret gradlew.
Fix the line endings OR use the correct path to gradlew.

  1. Your gradlew file has Windows (CRLF) line endings
    Linux cannot execute a script with CRLF endings.

Fix:
Convert gradlew to LF and commit it:
dos2unix gradlew
git add gradlew
git commit -m "Fix gradlew line endings"
git push

  1. gradlew is not in the repo root

Your workflow runs: ./gradlew :fs-core:clean

but the file might be inside a module like fs-core/gradlew.
Check with: - run: find . -maxdepth 3 -type f

If you see: ./fs-core/gradlew
then use: run: ./fs-core/gradlew :fs…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected byfredsuvn
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment
Category
Actions
Labels
ActionsBuild, test, and automate your deployment pipeline with world-class CI/CDQuestionAsk and answer questions about GitHub features and usageWorkflow ConfigurationTopics about workflow files, YAML setup, job dependencies, and general workflow configuration issuesMiscGeneral discussions about GitHub Actions that don't fit other found themes.
2 participants
@fredsuvn@Venuru