I'm getting an error when I try to setup the Google Play Games in Unity.
Google Play Games plugin version: 0.10.12
I have two versions of a single game project. One is with Unity version 2019.4.15f1. Other is with 2021.3.2f1.
The new version has some changes and fixes to the game and different ads provider, so I can't just use the older version just for the Google Play Games plugin.
When I use this plugin with Unity version 2019, I am able to save the configuration, but when I use the same plugin with Unity version 2021, I keep getting this error:
Invalid classname: Object reference not set to an instance of an object
I tried downgrading to 0.9.53 but that causes the same issue in 2021, and I also tried upgrading to 0.11.01 which seems to save the configuration, but doesn't have the option to sign out of google play games which is necessary for me.
I also got that error but now I solved it.
Using Unity version "2020.3.23f1.
It will be okay.
If you do, the error comes out then reboot your computer.
Related
I use 2020.1.5lc1 version to open my unity project, but after I click the project in unity hub, there is no response, unity IDE didn't open. I checked log file find message:
{"moduleName":"LocalProject","level":"info","message":"[ 'openProject projectPath: "xxx", current editor:',\n undefined ]","timestamp":"2021-12-17T05:33:26.666Z"}.
This looks like a known, and for now, unresolved issue that can occur when using the Unity Hub.
https://forum.unity.com/threads/unity-doesnt-open-from-unity-hub.524320/
There's a bunch of suggested fixes from users:
using a wifi connection only (unplug ethernet cable)
reissuing the license
reinstalling the hub
using Unity without the hub - just as a standalone
And Unity is promising an update somewhere in the undefined future.
If you have a working older version you are upgrading from I would stick with that for now. But you can try any of the suggested fixes and work arounds.
Using Google Play Services v 0.9.37 Unity 5.5 I already tried to google it but didn't get any anything related to it. Problem is Google play services plugin not working properly even not showing any error except this in console:
"Project GPM data does not exist. Creating new object. UnityEngine.Debug:Log(Object) Google.PackageManager.LoggingController:Log(String) Google.PackageManager.ProjectManagerController:InflateProjectRecord(String) Google.PackageManager.ProjectManagerController:.cctor() UnityEditor.EditorAssemblies:ProcessInitializeOnLoadAttributes()"
any solution ?
I faced the same error today after updating GPS. Which version of Google play services do you use ? Because, with the previous version, I didn't have this issue.
Answer 👍
Unity not support network connection show this shows this warning and don't forget to add testers in developer console.
I'm currently working with other classmates in a Unity project. My Unity version is 5.5.0f3 but it seems they are running 5.5.1f1 which is more recent.
When they open my changes they get the following message "oh no the project was saved with 5.5.0f3 and you're using a newer version"
I've tried updating but it shows that I'm at the most recent version of Unity. How do I force the updates?
Just go to the Unity website and download the latest version.
Google Analytics V4 was working well in my Unity project linking with play-services-analytics-8.4.0.aar. I've now upgraded to the latest Play Services including play-services-analytics-9.4.0.aar. I can build an apk successfully but calls to Google Analytics fail:
java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.analytics.GoogleAnalytics"
I also tried adding libGoogleAnalyticsServices.jar from the git project (a long shot) but that made no difference.
Advice?
Instead of play-services-analytics-9.4.0.aar, copy play-services-analytics-impl-9.4.0.aar. But you may still need play-services-analytics-9.4.0.aar for some of the analytics feature. If you want to be sure, copy both.
My best guess is this is related to Unity Google Analytics v4 works for Editor and iOS, not for Android
Having spent a day on it, I'm just removing Google Analytics for now; hopefully there will be an update to the Unity Google Analytics plugin that makes it compatible with Google Play 9.4
Using Unity 5.2.3.
Using Android SDK Rev. 23.1.1
Using Google Play Game Services Package 0.9.31a (Services Version 8.4.0) for unity.
Using AdMob 3.0.1
Using Vungle (can't link, stackoverflow not allowing more than 2 links)
Note: I am using AdMob and Vungle separately with Play game services.
I have integrated Play game services with my app and that's work fine but whenever I try to include any other packages like AdMob or Vungle following happens.
AdMob: I have included the package, whenever Compile or Reopen the project play-services-basement-8.4.0 get deleted, Play Games Package has Resolve Client Jars and I am 100% sure that to blame.
Vungle: I configured Vungle Package as described in their documentation but again whenever I compile or reopen the Project several of Vungle files along with Vungle's main file Assets/Plugins/Android/libs/"android-support-v4.jar" get deleted. Again maybe Resolve Client Jars to blame.
In both cases above, I have manually copied the missing files and include them while Unity was closed but those were gone as soon as project opens.
I have issued a bug report with Unity but they said they can't help with 3rd party and they don't have issue on Unity's end.
Please Help and let me know any additional information, ill be happy to assist you.
Regards,
Since PlayServicesResolver just find dependency by rules and copy "NEWEST" to project folder and Google Play Games already have dependency on support-library-v4 23.1.+. , we can not resolve this within Unity Plugin.
I would recommend:
As work around, you can navigate to Assets>Google Play Services>Settings>uncheck-"enable background resolution"
and manually copy support library from
$sdk/extras/android/m2repository/com/android/support/support-v4/21.0.3/support-v4-21.0.3.aar
to
Assets/Plugins/Android, and run Assets>Google Play Services>Resolve Client Jars and keep 21.0.3"
This will leave "older version" of "android-support-v4.jar", but Google Play Games might not work with this version of "android-support-v4.jar".
Can you please try this?
Thanks!