gradlew: Permission Denied

淺唱寂寞╮ 提交于 2019-11-28 15:09:14

Try to set the execution flag on your gradlew file:

chmod +x gradlew

Could also be fixed with

git update-index --chmod=+x gradlew

user3816061

You could use "bash" before command:

bash ./gradlew compileDebug --stacktrace

Jenkins > Project Dashboard > (select gradle project) Configure > Build

x Use Gradle Wrapper

Make gradlew executable x

git update-index --chmod=+x gradlew

This command works better especially on non-unix system.

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

if it doesn't work after chmod'ing make sure you aren't trying to execute it inside the /tmp directory.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!