Skip to content

Could not create task ':app:uploadBugsnagInternal-releaseMapping' #383

Open
@Egorand

Description

@Egorand

Describe the bug

We're using Bugsnag's Gradle plugin in combination with gradle-play-publisher, that creates a set of publish tasks which we use to publish bundles to Play store. Here's the Gradle task that the CI runs:

gw publishInternalReleaseBundle -Dci=true

After the update to bugsnag-android-gradle-plugin:5.7.5 the task above started failing at configuration phase with the following error:

* What went wrong:
Could not determine the dependencies of task ':app:publishInternalReleaseBundle'.
> Could not create task ':app:uploadBugsnagInternal-releaseMapping'.
   > java.io.FileNotFoundException: /Users/.../app/build/intermediates/gpp/internalRelease/available-version-codes.txt (No such file or directory)

I can reproduce it consistently on a local machine by running:

gw publishInternalReleaseBundle -Dci=true --dry-run

bugsnag-android-gradle-plugin:5.7.4 does not exhibit the same issue.

Here's what the bugsnag configuration looks like in our build.gradle:

bugsnag {
  variantFilter { variant ->
    def isDebug = variant.name.toLowerCase().contains("debug")
    variant.enabled = !isDebug || isCi
  }
  uploadJvmMappings = isCi
}

Apologies if this isn't a Bugsnag Gradle plugin issue (I don't see any references to available-version-codes.txt in the codebase, whereas gradle-play-publisher does reference this file), however I'm curious if you have any thoughts on why the issue only manifests in 5.7.5 and higher. I'll follow up with filing a bug against gradle-play-publisher.

Environment

  • Android Studio version: 2020.3.1 Canary 14
  • Android Gradle version: 6.8.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    backlogWe hope to fix this feature/bug in the futurebugConfirmed bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions