报错: Gradle does not have execution permission.

打包执行 flutter build apk时报错:

Gradle does not have execution permission.

You should change the ownership of the project directory to your user, or move the project to a directory with execute permissions.

Gradle task assembleRelease failed with exit code 1

解决办法:
1.找到项目gradlew文件, 拖到Terminal
2.运行命令 chmod a+x gradlew即可

参考:https://blog.csdn.net/qq_39420519/article/details/104002860

推荐阅读更多精彩内容