Fix - zsh: permission denied: ./gradlew [Android Studio Terminal]

If you are trying to run the gradlew script on the Terminal of Android Studio and you get the error "zsh: permission denied" the reason for this error is you do not have to execute permission to run this script.


How to fix this issue:

    Simply run the below command in the terminal before you execute commands using gradlew script.

    % chmod +x gradlew
    Fix - permission denied - gradlew

    This is not an AI-generated article but is demonstrated by a human on an M1 Mac running macOS Sonoma 14.0 with Android Studio Giraffe and Gradle 8.0.

    Please support independent contributors like Code2care by donating a coffee.

    Buy me a coffee!

    Buy Code2care a Coffee!

Comments & Discussion

Facing issues? Have questions? Post them here! We're happy to help!