gradlew: Permission Denied
You could use "bash" before command:
bash ./gradlew compileDebug --stacktrace
You need to update the execution permission for gradlew
Locally: chmod +x gradlew
Git:
git update-index --chmod=+x gradlew
git add .
git commit -m "Changing permission of gradlew"
git push
You should see:
mode change 100644 => 100755 gradlew
Try to set the execution flag on your gradlew file:
chmod +x gradlew
Could also be fixed with
git update-index --chmod=+x gradlew