[!] 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.
Finished with error: Gradle task assembleDebug failed with exit code 1
我当时是把Win里面的项目转到Mac里面,刚开始由于路径不对,Flutter跟SDK路径要换成Mac上的路径。
然后我Put get一下,项目没有报错,但是我启动IOS模拟器就报上面那个错误,我以为是模拟器的原因,我用了Android真机,发现同样的问题。
搜索到一个答案,我没看懂。
https://autoref.cn/2019/12/26/314/ 这是那个答案的连接。
问群里的人,别人告诉我,可能是你gradle的原因,我就把项目里,Android的项目单独运行一下,,把gradle生成一下,能跑起来,然后我重新Flutter运行,就好了。ios模拟器也可以用了