playgameservices / play-games-plugin-for-unity

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

Android Force Resolve failed after upgrade Google Play Games v0.11.01 #3145

Open trieudoan opened 2 years ago

trieudoan commented 2 years ago

Error:

Resolution Failed.

Resolution failed

Failed to fetch the following dependencies:
com.google.games:gpgs-plugin-support:+

On the resolving UI has a warning:

WARNING: Some conflicting dependencies were found.
The following dependency versions were modified:
com.google.games:gpgs-plugin-support:0.11.01 --> com.google.games:gpgs-plugin-support:+
greg-hanes commented 2 years ago

I was seeing the same issue as well as this warning:

"Assets/GooglePlayGames/com.google.play.games/Editor/GooglePlayGamesPluginDependencies.xml:11: Repo path 'Packages/com.google.play.games/Editor/m2repository' does not exist."

I resolved the issue by updating the GooglePlayGamesPluginDependencies.xml file to be Assets/GooglePlayGames/com.google.play.games/Editor/m2repository. Presumably the included path would work if the project was brought in using the package manager, since the path would be correct then? Though I'm not even sure how you would do that since officially you install by importing a unitypackage......

MiroslavShard commented 2 years ago

I was seeing the same issue as well as this warning:

"Assets/GooglePlayGames/com.google.play.games/Editor/GooglePlayGamesPluginDependencies.xml:11: Repo path 'Packages/com.google.play.games/Editor/m2repository' does not exist."

I resolved the issue by updating the GooglePlayGamesPluginDependencies.xml file to be Assets/GooglePlayGames/com.google.play.games/Editor/m2repository. Presumably the included path would work if the project was brought in using the package manager, since the path would be correct then? Though I'm not even sure how you would do that since officially you install by importing a unitypackage......

Thank you @greg-hanes for your solution!

snlehton commented 2 years ago

I was seeing the same issue as well as this warning:

"Assets/GooglePlayGames/com.google.play.games/Editor/GooglePlayGamesPluginDependencies.xml:11: Repo path 'Packages/com.google.play.games/Editor/m2repository' does not exist."

I resolved the issue by updating the GooglePlayGamesPluginDependencies.xml file to be Assets/GooglePlayGames/com.google.play.games/Editor/m2repository. Presumably the included path would work if the project was brought in using the package manager, since the path would be correct then? Though I'm not even sure how you would do that since officially you install by importing a unitypackage......

Thank you! This was needed to get the package to work on Unity 2021.2.17f1

userqt commented 2 years ago

That worked for me too, thanks a lot. But... this seems to be a manual change, we all have to do every time? I would hope this to be updated.