在 Debug模式下在为 x86 构建的 Android SDK 上启动 lib/main.dart...
[!] 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 assembleDebug failed with exit code 1 Exited (sigterm)
最佳答案
我在 mac 上尝试执行 flutter run
时遇到了同样的错误。显然,在您的 flutter 项目中,有一个文件 android/gradlew
应该是可执行的(但事实并非如此)。所以就我而言,我跑了......
chmod a+rx android/gradlew
...之后 flutter
命令起作用了。
关于android - 运行没有权限的flutter项目出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58901828/