79223318

Date: 2024-11-25 13:55:30
Score: 3.5
Natty:
Report link

I'd like to make some additions to mxkmn's answer above https://stackoverflow.com/a/77736735/12131861

If you are using MacOS or by some reason something goes wrong, AS might throw an error like this

Cannot run program "/Users/.../gradlew.bat" (in directory "/Users/..."): error=13, Permission denied

So you should replace the "Program field" in external tools dialog to $ProjectFileDir$/gradlew instead of $ProjectFileDir$/gradlew.bat

To make it look like this


If you keep getting the same error, try to execute the command below in terminal to make the gradlew file executable

chmod +x gradlew
Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): getting the same error
  • Low reputation (1):
Posted by: kartollika