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
ClassNotFoundException com.google.games.bridge.TokenFragment after updating from version 1.2.104 to 1.2.108 #208
Comments
We experienced same thing after upgrading from 1.2.104 to 1.2.105 Probably its caused by this changelog (1.2.105) We rolled back to 1.2.104 to solve it for now. |
@Hauki we've been testing this with Firebase and it seems fine. Are the Play Games Services AARs being added to the mainTemplate.gradle file? |
Hi, These were added // Android Resolver Dependencies Start |
@Hauki thanks for sharing. I discovered that Play Games ships a srcaar file that isn't processed correctly when building with the Gradle template mode. https://github.com/googlesamples/unity-jar-resolver/raw/v1.2.110/play-services-resolver-1.2.110.0.unitypackage should fix this. |
I had the same issue and can confirm updating from 1.2.105 to 1.2.110 fixed the issue. Thanks for the fix! |
ClassNotFoundException happens on startup after updating to 108. It look to be related to that the jar/aar files are now compiled in the gradle file instead of residing in the plugin folder. We tried adding it to our proguard file, but that did not help.
`05-06 11:12:23.436 16323-16386/ W/Unity: !!! [Play Games Plugin DLL] 05/06/19 11:12:23 +02:00 WARNING: Creating new PlayGamesPlatform
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:LogWarning(Object)
05-06 11:12:23.462 16323-16386/ W/Unity: *** [Play Games Plugin DLL] 05/06/19 11:12:23 +02:00 ERROR: Exception launching token request: java.lang.ClassNotFoundException: com.google.games.bridge.TokenFragment
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:LogWarning(Object)
05-06 11:12:23.464 16323-16386/ W/Unity: *** [Play Games Plugin DLL] 05/06/19 11:12:23 +02:00 ERROR: UnityEngine.AndroidJavaException: java.lang.ClassNotFoundException: com.google.games.bridge.TokenFragment
java.lang.ClassNotFoundException: com.google.games.bridge.TokenFragment
at java.lang.Class.classForName(Native Method)
at java.lang.Class.forName(Class.java:324)
at java.lang.Class.forName(Class.java:285)
at com.unity3d.player.UnityPlayer.nativeRender(Native Method)
at com.unity3d.player.UnityPlayer.c(Unknown Source)
at com.unity3d.player.UnityPlayer$e$2.queueIdle(Unknown Source)
at android.os.MessageQueue.next(MessageQueue.java:404)
at android.os.Looper.loop(Looper.java:137)
at com.unity3d.player.UnityPlayer$e.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.games.bridge.TokenFragment" on path: DexPathList
`
The text was updated successfully, but these errors were encountered: