EvilMindDevs / hms-unity-plugin

The HMS Unity Plugin makes it easy to include Huawei Mobile Services into Unity-based games. Authentication, in-app purchases, push alerts, ads, and interaction with gaming services are just a few of the basic capabilities that this formidable tool makes available to your applications.
https://evilminddevs.gitbook.io/hms-unity-plugin/
311 stars 43 forks source link

Build for Android fails after Updating Unity version and Target API to 34 #519

Open SMahdiFaghih opened 2 weeks ago

SMahdiFaghih commented 2 weeks ago

Describe the bug & problem After updating my Target API to 34 (Android 14) and also updating Unity version to 2021.3.42f1, now i have problem building the game for Android. Before doint so, the build worked correctly on version 2.3.8 but after that it raised the following error. Also updating to 2.3.9 did not help.

After these updates the dependencies inside mainTemplate.gradle should be moved to settingsTemplate.gradle and the error occurs on hmsBaseProjectTemplate.gradle line 7 as follows:

What went wrong: A problem occurred evaluating script.

Cannot change dependencies of dependency configuration ':classpath' after it has been resolved.

Since this file is generated on build, modifing it won't help. Moving this classpath depencency to mainTemplate.gradle also did not help. The dependency does nto resolve by External Dependency Manager on Force Resolve.

At this point, i don't know what the solution might be and i need your help yo fix this problem.

Environment (please complete the following information):

github-actions[bot] commented 2 weeks ago

Thank you for reporting this issue/advice.

We will get back to you as soon as possible.
Would you like to star our plugin to support us? :sparkles: