sentry-unity
sentry-unity copied to clipboard
multiple sentryUploadSymbols added to build.gradle file
I have a recurring issue where the sentryUploadSymbols is being added to the build.gradle file more then once resulting in failed builds.
it seems there is a missing check in the DebugSymbolUpload.cs to see if the task has already been added.
unfortunately I cannot patch it as it's part of the dll
origin: https://github.com/getsentry/sentry-unity/blob/cc4a46795ad34621bbf870ef3d722cebe62c4dcd/src/Sentry.Unity.Editor/Android/DebugSymbolUpload.cs#L165
Environment
Sentry SaaS with Unity SDK
Which version of the SDK?
v3.2.2
How did you install the package? (Git-URL, Assetstore)
Installed via package manager with Git-URL
Which version of Unity?
6000.0.41f
Is this happening in Unity (editor) or on a player like Android, iOS, Windows?
Editor - Causing builds to fail
Steps to Reproduce
- Run a build more then once
Expected Result
successful build
Actual Result
Build failing due to duplicate sentryUploadSymbols task in the build.gradle file
Any logs or screenshots
stderr[
FAILURE: Build failed with an exception.
* Where:
Build file '/Users/...ProjectPath.../Library/Bee/Android/Prj/IL2CPP/Gradle/launcher/build.gradle' line: 137
* 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 5s
]
stdout[
> Configure project :unityLibrary
Variant 'debug', will keep symbols in binaries for:
'libunity.so'
'libil2cpp.so'
'libmain.so'
Variant 'release', symbols will be stripped from binaries.
> Configure project :launcher
Variant 'debug', will keep symbols in binaries for:
'libunity.so'
'libil2cpp.so'
'libmain.so'
Variant 'release', symbols will be stripped from binaries.
]
exit code: 1