我正在尝试将 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 的情况下解决问题?
答案 0 :(得分:0)
问题是 artifactType
默认设置为 APK
,但可以将其更改为 AAB
:
firebaseAppDistribution {
artifactType = "AAB"
...
}