playgameservices / play-games-plugin-for-unity

Google Play Games plugin for Unity
Other
3.43k stars 954 forks source link

"GooglePlayGamesManifest.plugin" is not loading in Unity 2021.2 #3088

Closed haru-sudo closed 2 years ago

haru-sudo commented 2 years ago

"GooglePlayGamesManifest.plugin" is not loading in Unity 2021.2. Please see the following images first.

スクリーンショット 2021-11-09 21 38 30

The above picture was exported in unity2021.1.

スクリーンショット 2021-11-09 21 40 02

The above picture was exported in unity2021.2.

スクリーンショット 2021-11-09 21 38 30

As you can see by comparing the images, the GooglePlayGamesManifest.plugin is not present in unity2021.2. This needs to be fixed as soon as possible.

ozdemir08 commented 2 years ago

Thanks for reporting this. I have looked into this issue and using Unity 2021.2 I got some errors too.

It is likely that the issue is caused by External Dependency Manager. See #447 and #440. The issues there have been fixed and using its latest version fixed problems for me.

We will make a release updating the EDM version. In the meantime, could you try out using the latest version of EDM and check if using the last version works for you?

Only thing to do is after importing Play Games Plugin for Unity, to import the latest version of EDM into your project and clicking Assets > External Dependency Manager > Android Resolver > Force Resolve.

haru-sudo commented 2 years ago

Thank you for your reply. I imported the latest External Dependency Manager version 1.2.167 into my project and ran Assets > External Dependency Manager > Android Resolver > Force Resolve to build. but it did not solve the problem. However, I found a solution to the problem, which I will share with you. If you change the .plugin at the end of GooglePlayGamesManifest.plugin to .androidlib and add GooglePlayGamesManifest.androidlib to Assets > Plugins > Android, it will load.

ozdemir08 commented 2 years ago

Using the latest External Dependency Manager, I was able to resolve dependencies and build the project. So, I could not reproduce the error. Could you write down each one of the reproduction steps? I see from the screenshots that you are using Android Studio. After importing the plugin into your Unity project, do you export it for Android Studio?

franpereira commented 2 years ago

Thank you for your reply. I imported the latest External Dependency Manager version 1.2.167 into my project and ran Assets > External Dependency Manager > Android Resolver > Force Resolve to build. but it did not solve the problem. However, I found a solution to the problem, which I will share with you. If you change the .plugin at the end of GooglePlayGamesManifest.plugin to .androidlib and add GooglePlayGamesManifest.androidlib to Assets > Plugins > Android, it will load.

Thanks! Those steps worked for me too. It was compiling successfully but I was having trouble logging in until I tried that.

Mejval5 commented 2 years ago

Thank you for your reply. I imported the latest External Dependency Manager version 1.2.167 into my project and ran Assets > External Dependency Manager > Android Resolver > Force Resolve to build. but it did not solve the problem. However, I found a solution to the problem, which I will share with you. If you change the .plugin at the end of GooglePlayGamesManifest.plugin to .androidlib and add GooglePlayGamesManifest.androidlib to Assets > Plugins > Android, it will load.

Holy cow. This was a bitch to fix, thank you for the fix! This bug happens in Unity 2021.2.0f1. After two days on this issue I finally found this fix working. Thank you again

ozdemir08 commented 2 years ago

Thank you all. We have fixed the bug internally as well, thanks to @HAL-JP and are planning to make a release in the next couple of days.

ozdemir08 commented 2 years ago

We have made a new release including the fix. Let us know if you still face the same problem with the latest release. Thanks all for your contribution.

toxikman commented 2 years ago

Why was the .androidlib folder moved to /Assets/Plugins? I'm 95% sure it is not necessary to move the .androidlib folder to /Assets/Plugins directory (it worked well before the move). 2021.2 did stop working for folders with .plugin extension so it was necessary to rename it to .androidlib. These plugins can reside anywhere in the Assets folder. For project maintenance, we actually prefer the way it was before where all the Google Play Games related files are fully contained within the GooglePlayGames folder.