android - 当我尝试运行 Gradle Play Publisher 任务时不断收到内部服务器错误
问题描述
我有一个开发者帐户,其中有一个私人(托管的 google play)应用程序。
我之前手动发布了这个应用程序的一个版本,并且组织内的验证用户可以下载/安装它。
我一直在尝试通过 GPP 插件 ( https://github.com/Triple-T/gradle-play-publisher ) 发布另一个版本,或者运行其他任务,例如bootstrapListing
但连续几天收到 500 个内部服务器错误。
你知道我错过了什么吗?
我仔细检查的事情
- 创建了一个 GCP 项目
- 启用发布 API
- 将项目链接到开发者控制台
- 创建了一个服务帐户
- 将此服务帐户添加到开发者控制台并检查所有权限。
- 创建服务帐户的密钥并将其用于
app/build.gradle
:
play {
serviceAccountCredentials.set(file("service.json"))
}
版本
- Gradle Play 发布者:3.6.0
- Gradle 包装器:7.0.2
- Android Gradle 插件:7.0.2
执行的任务
bootstrapListing
, bootstrapReleaseListing
,publishApk
和许多其他的。
预期行为
我应该能够发布 apk 或运行bootstrapListing
任务而不会出错。
运行 bootstrapListing 任务时遇到的错误
Execution failed for task ':app:bootstrapReleaseListing'.
> Multiple task action failures occurred:
> A failure occurred while executing com.github.triplet.gradle.play.tasks.Bootstrap$DetailsDownloader
> 500 Internal Server Error
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/***/edits
{
"code": 500,
"errors": [
{
"domain": "global",
"message": "Internal error encountered.",
"reason": "backendError"
}
],
"message": "Internal error encountered.",
"status": "INTERNAL"
}
> A failure occurred while executing com.github.triplet.gradle.play.tasks.Bootstrap$ListingsDownloader
> 500 Internal Server Error
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/***/edits
{
"code": 500,
"errors": [
{
"domain": "global",
"message": "Internal error encountered.",
"reason": "backendError"
}
],
"message": "Internal error encountered.",
"status": "INTERNAL"
}
> A failure occurred while executing com.github.triplet.gradle.play.tasks.Bootstrap$ReleaseNotesDownloader
> 500 Internal Server Error
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/***/edits
{
"code": 500,
"errors": [
{
"domain": "global",
"message": "Internal error encountered.",
"reason": "backendError"
}
],
"message": "Internal error encountered.",
"status": "INTERNAL"
}
解决方案
推荐阅读
- c# - GetManifestResourceNames 返回空数组
- android - 我不能这样设计
- c++ - C++ 函数作为参数二分查找
- javascript - 在 PDF 文档上拖放文本元素并使用删除的元素保存新 PDF
- java - 变量显示,但我不希望它显示
- excel - 打开网络文件/使用用户定义的函数启用内容时 Excel 间歇性崩溃
- crystal-reports - CrystalReports For Visual Studio 2017 NuGet 上的早期版本
- python - 对数据拟合对数正态分布并在 Python 和 R 中执行 Kolmogorov-Smirnov 检验
- java - Java - 以升序运行插入节点时出现运行时错误
- matlab - 如何从傅里叶光谱中恢复我的图像