Recently, my project team integrated the HMS Core SDK for a Unity-based game. But after integrating the HMS Core SDK in Android Studio and generated a JAR file. The agconnect-services.json file downloaded from AppGallery Connect could not be used in Unity. what can i do with these error message?
Asked
Active
Viewed 924 times
0

DevWithZachary
- 3,545
- 11
- 49
- 101
-
I have tried to modify the manifest file by adding the following code. – DevWithZachary Mar 02 '21 at 01:45
1 Answers
2
You can try the following steps:
- Save the JSON file obtained from AppGallery Connect to the Plugins/Android directory of Unity.
- As Unity provides the HMS Core SDK plug-ins and a demo app, place the AfterBuildToDo script in the demo app in the Editor folder of your own project.
URL for downloading the Unity demo app:
https://github.com/Unity-Technologies/HMSSDKSample
The script is stored in Assets/HuaweiHms/src/Editor/AfterBuildToDo.cs.

zhangxaochen
- 32,744
- 15
- 77
- 108