1

我正在尝试将 AAB 上传到 App Distribution(链接到 Google Play),但出现此错误:

Execution failed for task ':mobile:appDistributionUploadRelease'.
> Could not find the APK. Make sure you build first by running ./gradlew assemble[Variant*** or set the artifactPath parameter to point to your APK

如何在不构建 APK 的情况下解决问题?

4

1 回答 1

2

问题是artifactType默认设置为APK,但可以将其更改为AAB

firebaseAppDistribution {
    artifactType = "AAB"
    ...
}

来源:文档

于 2021-06-14T23:42:21.480 回答