Firebase 应用分发:“找不到 APK”(构建 AAB 时)

Posted

技术标签:

【中文标题】Firebase 应用分发:“找不到 APK”(构建 AAB 时)【英文标题】:Firebase App Distribution: "Could not find the APK" (when having built an AAB) 【发布时间】:2021-08-30 20:04:56 【问题描述】:

我正在尝试将 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 的情况下解决问题?

【问题讨论】:

【参考方案1】:

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

firebaseAppDistribution 
    artifactType = "AAB"
    ...

来源:documentation。

【讨论】:

以上是关于Firebase 应用分发:“找不到 APK”(构建 AAB 时)的主要内容,如果未能解决你的问题,请参考以下文章