Skip to content

AppDistribution - Latest version which fixed Missing app id. Please check that it was passed in and try again not working for APK splits #5760

Open
@ursusursus

Description

@ursusursus

Hi,

com.google.gms.google-services:4.4.1
com.google.firebase.appdistribution:4.2.0

I read there was an issue with previous versions where GMS broke AppDistribution, and then AppDistribution issues an fix.
All is working for my non-apk split project.

However, for the one with apk split, there was a need to register task per ABI manually like this (prior 4.x app distribution)

tasks.register("appDistributionUpload${abiName.capitalize()}${variant.name.capitalize()}", com.google.firebase.appdistribution.gradle.UploadDistributionTask) {
    artifactPath = output.outputFile.absolutePath
    serviceCredentialsFile = project.file("secrets/ci-firebase-account.json").absolutePath
    releaseNotes = abi
}

Now after upgrading to the latest, this also produces the known (#5349)

Using APK path specified by the artifactPath parameter in your app's build.gradle: /Users/ursus/AndroidStudioProjects/o2-selfcare-android/mo2-android/radost/app/build/outputs/apk/tstFaceRecoDev/release/app__tstDevRelease_arm64-v8a_f008e376cb__05-03-2024__v1-24_200179907.apk.
Uploading APK to Firebase App Distribution...

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':foo:app:appDistributionUploadArm64v8aTstDevRelease'.
> Missing app id. Please check that it was passed in and try again

Could you please elaborate what was your fix, which fixed the non-apk split default behavior? It seems to me I need to "set" it manually here as well, since I'm registering a new Task

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions