First of all, provide a Demo download link to integrate Huawei services in Unity, you can try to access first

https://github.com/Unity-Tech…

1, Unityopen Demo report illegal dependency error

Project has invaild dependenciess: com.unity.textmeshpro: Connect ETIMEDOUT 172.81.232.209:443 com.unity.timeline: The connect ETIMEDOUT 172.81.232.209:443

You can ignore the problem at this point and click Continue to enter the project. Then inside the project, click Window-Package Management

Find the package that needs to be updated and click Update to Update it to the latest version.

2. Switch to Android

Select the File-Build Setting, select Android, and click Switch Platform to Switch to Android

3. After switching the Android platform, the following errors were reported in Visual C# Compiler Version, which can be ignored directly. The problem can be solved by closing the project and reopening it

Microsoft (R) Visual C# Compiler Version 2.9.1.65535 (9D34608E) Cyright (C) Microsoft Corporation. All Right Reserved

In the Build Setting interface, click Player Settting to enter the project Setting page.

First, configure the Product Name to the Name you want

Then, in the Other Setting, configure the Package Name, which is the Package Name of the Android application and needs to be consistent with the Name in the JSON file of AGC.

In Publish Setting, check Custom KeyStore. (This is only for AGC’s 9 services that do not require signature. If signature is involved, complete the signature generation operation.)

Finally, download the JSON file from the AGC interface and place it in the project’s.. Under the \ Assets \ Plugins \ Android path

In the Build Setting, select the corresponding device, click Build and Run, and the following error will be reported.

org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleDebug"
stderr[
Picked up JAVA_TOOLOPTIONS: Dfile.encoding=UTF-8

This problem is caused by canceling the corresponding signature file, but using it in gradle file again.

To solve this problem, you need to turn on… In the launcherTemplate.gradle file under the \Assets\Plugins\Android path, find the following code snippet and comment it out:

Launcher-release. apk does not exist

Temp\gradleOut\launcher\build\outputs\apk\release\launcher-release.apk does not exist
System.IO.File.Move(System.String.sourceFileName, System.String destFileName)

Fix this problem: When you need to package, check the options shown in the following image

The original link: https://developer.huawei.com/… Author: Mayism