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!

Related Posts:

Posts that may be related to "Android Development: Permission denied when running ./gradlew in Mac":

Catzie

A Filipino programmer with a variety of interests such as baking, singing, making up silly song/rap lyrics, K-pop, drawing, creating unique dessert flavors, obsessing about finding out how some things works, board games, anime, video games, and forgetting things that usually go in her long list of interests. Running small-time online dessert shops Cookies PH and Catzie's Cakery.

Leave a Reply

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