sentry-unity icon indicating copy to clipboard operation
sentry-unity copied to clipboard

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

Open Awais6 opened this issue 5 months ago • 1 comments
trafficstars

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.

  • Get more help at https://help.gradle.org

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]

Awais6 avatar Jun 15 '25 16:06 Awais6