【发布时间】:2022-08-03 18:55:14
【问题描述】:
我正在尝试使用 Gradle 将 APK 上传到 Firebase,如下所述
./gradlew assembleRelease appDistributionUploadRelease -Dhttps.proxyHost=10.xx.xx.xx -Dhttps.proxyPort=8080 \"-Dhttps.nonProxyHosts=localhost\" --stacktrace
但是,它失败并出现以下错误
错误
Caused by: com.google.api.client.http.HttpResponseException: 403 Forbidden
POST https://firebaseappdistribution.googleapis.com/upload/v1/projects/xxxxxxxxx/apps/1:xxxxxxxxx:android:0a4f47b9fe3f6250/releases:upload
{
\"error\": {
\"code\": 403,
\"message\": \"The caller does not have permission\",
\"status\": \"PERMISSION_DENIED\"
}
}
我提到了这个link 来解决这个问题,但没有运气
-
升级
Gradle plugin以使用最新版本 build.gradle -
向
client_email提供以下权限服务帐户- Firebase 管理员
- Firebase 应用分发管理员
- Firebase 应用分发管理 SDK 服务代理
- 所有者
- 服务帐户用户
我在 SO 中看到了类似的问题,但不确定我错过了什么