1

I'm trying to upload AAB to App Distribution (linked to Google Play) and I'm getting this error:

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

How to resolve the issue without building an APK?

Martin Zeitler
  • 1
  • 19
  • 155
  • 216

1 Answers1

2

The issue is that artifactType is by default set to APK, but one can change it to AAB:

firebaseAppDistribution {
    artifactType = "AAB"
    ...
}

Source: the documentation.

Martin Zeitler
  • 1
  • 19
  • 155
  • 216