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

[Bug]: Build error after executing Huawei Unity SDK Setup #615

Open
1 task done
bubbleklass opened this issue Jun 2, 2023 · 1 comment
Open
1 task done

[Bug]: Build error after executing Huawei Unity SDK Setup #615

bubbleklass opened this issue Jun 2, 2023 · 1 comment

Comments

@bubbleklass
Copy link

What happened?

Hello. When following documentation for Huawei Unity SDK Setup, unable to build apk from Unity due to build errors

FAILURE: Build failed with an exception.

Where:
Settings file 'D:\UnityProjects\TestOSAGProject\Library\Bee\Android\Prj\IL2CPP\Gradle\settings.gradle' line: 50
What went wrong:
A problem occurred configuring root project 'Gradle'.
D:\UnityProjects\TestOSAGProject\Library\Bee\Android\Prj\IL2CPP\Gradle\unityLibrary\OneSignalConfig\agconnect-services.json

Steps to reproduce?

1. Created a new 2D project in Unity 2021.3.22
2. Installed the OneSignal SDK for Unity according to the Unity SDK Setup instructions
3. Compiled the project, the assembly was successful
4. Set up SDK according to Huawei Unity SDK Setup instructions
5. I tried to compile the project for verification and it did not assemble, errors appeared

What did you expect to happen?

I expect the apk to be successfully generated without any compile errors to check push notifications

Unity version

2021.3.22

OneSignal Unity SDK version

3.0.11

Platform

Android

Relevant log output

FAILURE: Build failed with an exception.

* Where:
Settings file 'D:\UnityProjects\TestOSAGProject\Library\Bee\Android\Prj\IL2CPP\Gradle\settings.gradle' line: 50

* What went wrong:
A problem occurred configuring root project 'Gradle'.
> D:\UnityProjects\TestOSAGProject\Library\Bee\Android\Prj\IL2CPP\Gradle\unityLibrary\OneSignalConfig\agconnect-services.json

* 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.

Code of Conduct

  • I agree to follow this project's Code of Conduct
@ancient-alien-001
Copy link

The same problem. I think that the documentation regarding the Unity has been updated for a long time.

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

No branches or pull requests

2 participants