Search code examples
androidioswindowsfluttergradle

Gradle does not have execution permission


I am having this problem when I try to compile my first app in flutter. I have already read several solution proposals but they are for mac or linux, when I try to use the command: chmod a + rx android / gradlew it tells me it does not exist. I am using windows. I attach photos of the error error flutter doctor


Solution

  • From the screenshot given the problem seems to be with where your project is located. Try moving your project into an accessible folder/ directory outside of the the C:/ or the current directory into something like C:/users/your_username/fluter_development/. This will make sure that gradle has the right permissions to download the necessary artifacts to build your app successfully.