You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is this happening in Unity (editor) or on a player like Android, iOS, Windows?
Android Build
Steps to Reproduce
Add sentry to a new project in 2022.3.0f1, press build
Expected Result
It builds the apk without errors
Actual Result
It builds the apk but with an error
[Error] Error building Player: Sentry: (Error) Failed to modify the 'build.gradle' files. UnityEditor.Build.BuildFailedException: Failed to find scope 'repositories'.
at Sentry.Unity.Editor.Android.GradleSetup.InsertIntoScope (System.String gradleContent, System.String scope, System.String insertion) [0x00119] in /sentry-unity/src/Sentry.Unity.Editor/Android/GradleSetup.cs:106
at Sentry.Unity.Editor.Android.GradleSetup.UpdateGradleProject () [0x00022] in /sentry-unity/src/Sentry.Unity.Editor/Android/GradleSetup.cs:32
at Sentry.Unity.Editor.Android.AndroidManifestConfiguration.SetupGradle (System.String gradleProjectPath) [0x0002c] in /sentry-unity/src/Sentry.Unity.Editor/Android/AndroidManifestConfiguration.cs:263
[Error] Sentry: (Error) Failed to modify the 'build.gradle' files. UnityEditor.Build.BuildFailedException: Failed to find scope 'repositories'.
at Sentry.Unity.Editor.Android.GradleSetup.InsertIntoScope (System.String gradleContent, System.String scope, System.String insertion) [0x00119] in /sentry-unity/src/Sentry.Unity.Editor/Android/GradleSetup.cs:106
at Sentry.Unity.Editor.Android.GradleSetup.UpdateGradleProject () [0x00022] in /sentry-unity/src/Sentry.Unity.Editor/Android/GradleSetup.cs:32
at Sentry.Unity.Editor.Android.AndroidManifestConfiguration.SetupGradle (System.String gradleProjectPath) [0x0002c] in /sentry-unity/src/Sentry.Unity.Editor/Android/AndroidManifestConfiguration.cs:263
The text was updated successfully, but these errors were encountered:
Environment
How do you use Sentry?
sentry.io
Which version of the SDK?
1.4.0
How did you install the package?
Git UPM
Which version of Unity?
2022.3.0f1
Is this happening in Unity (editor) or on a player like Android, iOS, Windows?
Android Build
Steps to Reproduce
Add sentry to a new project in 2022.3.0f1, press build
Expected Result
It builds the apk without errors
Actual Result
It builds the apk but with an error
[Error] Error building Player: Sentry: (Error) Failed to modify the 'build.gradle' files. UnityEditor.Build.BuildFailedException: Failed to find scope 'repositories'.
at Sentry.Unity.Editor.Android.GradleSetup.InsertIntoScope (System.String gradleContent, System.String scope, System.String insertion) [0x00119] in /sentry-unity/src/Sentry.Unity.Editor/Android/GradleSetup.cs:106
at Sentry.Unity.Editor.Android.GradleSetup.UpdateGradleProject () [0x00022] in /sentry-unity/src/Sentry.Unity.Editor/Android/GradleSetup.cs:32
at Sentry.Unity.Editor.Android.AndroidManifestConfiguration.SetupGradle (System.String gradleProjectPath) [0x0002c] in /sentry-unity/src/Sentry.Unity.Editor/Android/AndroidManifestConfiguration.cs:263
[Error] Sentry: (Error) Failed to modify the 'build.gradle' files. UnityEditor.Build.BuildFailedException: Failed to find scope 'repositories'.
at Sentry.Unity.Editor.Android.GradleSetup.InsertIntoScope (System.String gradleContent, System.String scope, System.String insertion) [0x00119] in /sentry-unity/src/Sentry.Unity.Editor/Android/GradleSetup.cs:106
at Sentry.Unity.Editor.Android.GradleSetup.UpdateGradleProject () [0x00022] in /sentry-unity/src/Sentry.Unity.Editor/Android/GradleSetup.cs:32
at Sentry.Unity.Editor.Android.AndroidManifestConfiguration.SetupGradle (System.String gradleProjectPath) [0x0002c] in /sentry-unity/src/Sentry.Unity.Editor/Android/AndroidManifestConfiguration.cs:263
The text was updated successfully, but these errors were encountered: