Skip to content

Sentry 'Upload Symbols Task' is added on each build producing duplicate task build error #2195

@Awais6

Description

@Awais6

Environment

How do you use Sentry?
sentry.io

Which version of the SDK?

3.2.2

How did you install the package? (Git-URL, Assetstore)

Which version of Unity?
2022.3.62f1 LTS

Is this happening in Unity (editor) or on a player like Android, iOS, Windows?
Editor (while building for Android)

Steps to Reproduce

  1. Install Sentry and Configure it in fresh Unity Project.
  2. Build project for Android (Should be a successful build)
  3. Again Build Project for Android
  4. Meet the Bug

Expected Result

Successful Build

Actual Result

FAILURE: Build failed with an exception.

  • Where:
    Build file 'E:\Projects\Unity\Bob The Builder Old\Library\Bee\Android\Prj\IL2CPP\Gradle\launcher\build.gradle' line: 127

  • What went wrong:
    A problem occurred configuring project ':launcher'.

Cannot add task 'sentryUploadSymbols' as a task with that name already exists.

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

BUILD FAILED in 8s

Image

Any logs or screenshots

below task is added multiple times after first successful build

task sentryUploadSymbols {
*
*
*
}
// Autogenerated Sentry symbol upload task [end]

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't workingUnity

    Projects

    Status

    Done

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions