android - 在 AppCenter 中构建发布 Flutter 应用程序时出错
问题描述
当我在 AppCenter 中构建我的 Flutter 应用程序时,对于 Android,我收到此错误,它是什么“ Gradle 没有执行权限。 ”,它不在我的机器上,它在 AppCenter 的:
Running Gradle task 'assembleRelease'... 0.1s
[!] 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
##[error]/bin/bash failed with return code: 1
##[error]Bash failed with error: /bin/bash failed with return code: 1
##[section]Finishing: Post Clone Script
##[section]Starting: Checkout
解决方案
有同样的问题。对我来说git update-index --chmod=+x gradlew
,这里提到的工作https://stackoverflow.com/a/49074196/3573390
推荐阅读
- java - 如何在heroku上制作临时文件?未解决的问题
- python - 将列表中的值添加到嵌套列表中
- bash - GNU 并行和脚本未启动
- azure - 应用洞察中间件 - 跟踪 SQL 参数
- android - Android Developer Sample BluetoothLeGatt 没有扫描结果
- apache-nifi - PrometheusReportingTask 仅在一个处理器组上报告指标
- iis - IIS 应用程序请求路由模块 502.2
- arm - 在 ubuntu 上使用 linaro ABE 的 ARM 工具链构建错误
- c# - 实例化并设置为子游戏对象的父级
- javascript - 通过对孩子进行硬编码来验证 azure jwt 令牌中的孩子