Confirm the URL doesn't have a trailing whitespace at the end. The Unity Package Manager will fail to find the package if a trailing whitespace is appended.
Some Unity versions, such as
2020.3.2f1, have a bug on UPM and fail to install with the error
'HEAD': cannot update ref 'refs/heads/master'.
Unity has resolved this issue on newer releases. Learn more by checking the Unity Issue Tracker.
The Sentry package includes a couple of DLLs that might have been already been provided by other packages. Unity's package manager does not resolve those dependency issues which means it has to be done manually:
- Choose which dependency you want to remove.
- Embed the package so you can modify it. This means you copy the package from Unity's global cache into your project's package directory and it should be version controlled.
- Remove the additional dependency.
Sentry SDK for Unity targets .NET Standard 2.0. It's based on the Sentry SDK for .NET which supports many versions of .NET and Mono. Starting from .NET 5.0 the .NET SDK has no dependencies. Unity has announced its intention to support .NET 6:
We would like to have something out in a preview in the fall of 2021 to coincide with .NET 6 release from Microsoft.
With this release, Sentry's SDK for Unity will have no dependencies to any external DLLs and such DLL conflict issues that UPM is unable to handle will no longer be something you need to deal with when using Sentry for Unity.