Android Studio & Gradle: Cannot run gradlew. Permission denied.

If you are getting the “permission denied” error message while trying to run ./gradlew clean or ./gradlew build manually in your project: -bash: ./gradlew: Permission denied</div> You have to make the gradlew file executable. Open a terminal, navigate to the folder where your gradlew file is, and set execute permissions: chmod +x gradlew  It is also a good idea to close the project in Android Studio while working with the gradle wrapper from the terminal.

» Read more