Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to find scope 'repositories' Unity 2022.3.0f1 #1355

Closed
oddgames-david opened this issue Jun 2, 2023 · 1 comment · Fixed by #1354
Closed

Failed to find scope 'repositories' Unity 2022.3.0f1 #1355

oddgames-david opened this issue Jun 2, 2023 · 1 comment · Fixed by #1354

Comments

@oddgames-david
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants