Skip to content

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

@bubbleklass

Description

@bubbleklass

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions