首页 > 解决方案 > 在 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

标签: androidfluttercontinuous-integrationvisual-studio-app-center

解决方案


有同样的问题。对我来说git update-index --chmod=+x gradlew,这里提到的工作https://stackoverflow.com/a/49074196/3573390


推荐阅读