I have been getting this error and would love some help fixing it!
What’s Wrong:
I am trying to integrate Google Play Games into my Unity project. When I build an APK and attempt to log in, I get a class not found exception:
ClassNotFoundException: com.google.android.gms.games.PlayGames
I think this may be due to the fact that the External Dependency Manager is failing to resolve, giving the error in this question’s title:
Resolution failed
Failed to fetch the following dependencies:
com.google.games:gpgs-plugin-support:+
What I’m Using:
- Unity 2020.3.35f1 w/ built-in JDK, SDK, and Gradle
- Google Play Games 11.01
- Firebase Auth & Firestore 9.1
- Unity’s debug key for my unpublished app (the app is set up with the debug key in the Google Play Console)
What I’ve Tried:
- Upgrading my Unity from 2020.3.25 to .3.35
- Using a custom Proguard file
- Downloading JDK 1.8 from Oracle and using that instead of the built-in
- Re-importing the Google Play Games plugin after importing all the firebase plugins
- Ensured that
spec="com.google.games:gpgs-plugin-support:0.11.01"
is in my GooglePlayGamesPluginDependencies.xml.
Any ideas or help that anyone can offer? It seems a few people have similar issues but said issues never get resolved. (or when a solution is offered it doesn’t work)
Thanks! This worked for me as well. Not sure why the xml was pointing to the wrong (non-existant) directory in the first place. Probably a bug.
– BreannabreanneThank you for your solution!
– LublinTHANK YOU! This works, even for Unity 2021.3.10f1 with GooglePlayGamesPlugin-0.11.01!
– DeclinatoryMan, IDK how long this one would have stumped me without you posting a solution. Thank you.
– StraffordThank you, you are a life saver!!!
– Tva