the same problem occurs to me... I check the file wrx permissions with:
$ls l ./gradlew - -rw-rw-r- (no execute permission)
so I use command $chmod +x ./gradlew and this problem solved.
-------------------------------------------
If you are using mac, try giving root access to gradlew by doing
chmod +x ./gradlew
-------------------------------------------
From mac,
Nothing is working except the following command
chmod 777 gradlew Then
./gradlew
-------------------------------------------
For more solutions, visit here https://syntaxfix.com/question/1795/gradle...
#java #linux #gradle #installation