Android Development: Permission denied when running ./gradlew in Mac

I’m using a Mac at the moment to work on my Android app projects.

For some reason I need to run ./gradlew in the terminal, but I was getting this error:

-bash: ./gradlew: Permission denied

To fix this, what I did was run the following commands:

After those commands, my Mac downloaded numerous files and it took an hour to finish because of our poor Internet connection in the workplace. 🙁

After an hour and a half, I was able to finally use the command ./gradlew on the Mac Mini. Phew!

Catzie

A Filipino who is a mobile & web developer on weekdays, and a baker on weekends. When I have time to spare, I blog, play video games, watch series (usually anime), cook dishes, draw, or spend a little time with pets. When I have the rare luxury of time, I get to travel and record song covers too! Follow on Twitter: @catzie

Leave a Reply

Your email address will not be published. Required fields are marked *