-
Notifications
You must be signed in to change notification settings - Fork 966
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not working with Unity 6 (Can't resolve dependencies) #3313
Comments
+1 |
1 similar comment
+1 |
This package is broken for me in Unity 6000.0.23f1 LTS. I found an alternative that works with Unity 6 though. Thaina/play-games-plugin-for-unity extends this repository by making it available on UPM. Much easier to work with. To migrate, I essentially uninstalled the Play Games Plugin for Unity and started from scratch using Thaina's method. In my Player / Publishing Settings, I unchecked all of the Build checkboxes (Custom Main Gradle Template, Custom Gradle Properties Template, and so on) Upon first build, Unity asks if you want to migrate your gradle templates. I selected yes. This will automatically modify the gradle templates, and check their checkboxes in Player / Publishing Settings for you. Then I checked Custom Proguard File and added the entries recommended here: https://github.com/playgameservices/play-games-plugin-for-unity/blob/master/scripts/proguard.txt Shoutout @Thaina for making this happen! Now my team can upgrade to Unity 6 and avoid paying $6000 to remove the freaking Unity logo |
Here is what worked for me: https://discussions.unity.com/t/game-play-services-resolver-bug-still-in-unity-6-sdk-34-35-found-workaround-temp-solution/1538619/3 But I'll paste it below as well. I've spent the last week trying to find some sort of solution so this temp fix works for me, for now until Unity/Google gets their ish together: Ok found a workaround temp fix. @unity needs to resolve this matter but here is the workaround that just worked for me. I have two projects of my game, one in unity 6 and one In unity 2023. Install the same plugin in both, so for me that was 10.14. Go to the 2023 (or older) stable version where force resolver works no problem. So what you do is after force resolve, look in Assets\Plugins\Android. You’ll see dozens of plug-ins. Reveal that plugin folder in finder. Now go back to Unity 6. Make sure your android setup (window> google play games) is done, then go to external dependency and do a regular resolve, not a force. Because of the bug, there should be no plug-ins in there, and if there is, delete whatever is in there except GooglePlayGamesManifest. Reveal that folder in finder. Now copy everything in the 2023 plug in folder and paste it into the unity 6 plug in folder. If it asks to replace certain files, click replace. Come back to unity 6, all the plug ins should now be in there. DO NOT FORCE RESOLVE - DO NOT REGULAR RESOLVE - DO NOT DO THE GOOGLE PLAY GAMES ANDROID SET UP - DO NOT BUILD AND RUN - DO NOT DO ANYTHING NOW EXCEPT THIS
ALSO - ANOTHER SUGGESTION This is my temporary fix for now. Unity, please figure out what’s going on. Hope this helps someone else |
I've finally made it work! Here are the steps I followed to get Google Play Games working with my Unity 6000.0.23f1 project:
Before:
After:
I hope this information is useful for those who have the same issue. |
Thanks. It really works |
Describe the bug
Not working with Unity 6. Can't resolve dependencies
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Dependencies should be resolved.
Observed behavior
Gradle can't find a package to resolve dependencies
Versions
Additional context
n\a
The text was updated successfully, but these errors were encountered: