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/
317 stars 42 forks source link

Got 2 errors after I imported this plugin #508

Closed qinhanlei closed 3 months ago

qinhanlei commented 3 months ago

Hi,

Thanks for creating such a convenient plugin :)

I got 2 errors after I imported this plugin as below:

Assets/Huawei/Demos/NearbyService/NearbyDemoManager.cs(175,51): error CS0118: 'Data' is a namespace but is used like a type
Assets/Huawei/Demos/NearbyService/NearbyDemoManager.cs(123,83): error CS0535: 'NearbyDemoManager.NearbyManagerListener' does not implement interface member 'IDataCallback.onReceived(string, Data)'

Environment:

I hope it helps.

github-actions[bot] commented 3 months 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:

Andronovo-bit commented 3 months ago

Hi @qinhanlei,

We will look into it and get back to you. Thank you for reporting the error. :)

Did you get the error while trying demo scenes or did you have a problem while trying the scene you created?

qinhanlei commented 3 months ago

Hi @qinhanlei,

We will look into it and get back to you. Thank you for reporting the error. :)

Did you get the error while trying demo scenes or did you have a problem while trying the scene you created?

Hi @Andronovo-bit ,

Thanks for your reply.

The plugin imports the demo scenes, so I tried it in my project. Even if I switch to the demo scenes, the error still exists.

Andronovo-bit commented 3 months ago

Hi again, @qinhanlei;

We tested plugin by creating new project and we faced no problem. Everything was okay.

If your problem continues, can you record short video how you added plugin in your project and it gives error and send it to us ?

qinhanlei commented 3 months ago

Hi, @Andronovo-bit

We figured out that there is a third-party DLL in our project that covers HuaweiMobileServices.Nearby.Transfer.Data.

Thank you for your help, and I am so sorry for wasting your time.

github-actions[bot] commented 3 months ago

Thank you for using our repository! We're glad we could help solve your issue. If you found our repository helpful, please consider giving us a star ⭐ on GitHub: https://github.com/EvilMindDevs/hms-unity-plugin

Your support helps us continue to improve our repository and provide valuable resources for others.

Andronovo-bit commented 3 months ago

@qinhanlei, You are welcome. No problem, we are here to help :)