Describe the bug
I have been using google play games plugin for years and recently I was making my game ready for a new update but google play game sign in caused an immediate crash. I figured I was using an outdated GPGS version(0.10.14) so I updated to the new version(0.11.01) and made the necessary configurations regarding the auto sign in. After creating a build and testing it I found out that whenever I try to load the achievements or leaderboards UI, the game crashes.
Please also note that authentication and sign in work fine and I can submit score to the leaderboards and unlock achievements without any problems.
To Reproduce
Import the GPGS version 0.11.01
Build to an Android device
Call any of the functions below:
Social.ShowAchievementsUI()
PlayGamesPlatform.Instance.ShowAchievementsUI()
Social.ShowLeaderboardUI()
PlayGamesPlatform.Instance.ShowLeaderboardUI()
Expected behavior
Show the respective UI either Achievement or Leaderboard
Observed behavior
App Crash
Versions
Unity version: 2021.3.16f1
Google Play Games Plugin for Unity version: 0.11.01
Additional context
Other features of GPGP work fine. I have also implemented Firebase, Applovin and Facebook SDKs in my project and they all work just fine. Here's my mainTemplate.gradle
Full stack trace of the crash:
--------- beginning of crash
E AndroidRuntime: FATAL EXCEPTION: main
E AndroidRuntime: Process: com.infinitygames.harmony, PID: 22825
E AndroidRuntime: java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/fragment/app/FragmentActivity;
E AndroidRuntime: at com.google.android.gms.common.api.internal.LifecycleActivity.zzd(com.google.android.gms:play-services-basement@@18.1.0:1)
E AndroidRuntime: at com.google.android.gms.common.api.internal.LifecycleCallback.getFragment(com.google.android.gms:play-services-basement@@18.1.0:3)
E AndroidRuntime: at com.google.android.gms.common.api.internal.LifecycleCallback.getFragment(com.google.android.gms:play-services-basement@@18.1.0:1)
E AndroidRuntime: at com.google.android.gms.tasks.zzv.zza(com.google.android.gms:play-services-tasks@@18.0.2:1)
E AndroidRuntime: at com.google.android.gms.tasks.zzw.addOnSuccessListener(com.google.android.gms:play-services-tasks@@18.0.2:3)
E AndroidRuntime: at com.google.games.bridge.SimpleUiRequest.process(SimpleUiRequest.java:30)
E AndroidRuntime: at com.google.games.bridge.HelperFragment.processRequest(HelperFragment.java:179)
E AndroidRuntime: at com.google.games.bridge.HelperFragment.onResume(HelperFragment.java:222)
E AndroidRuntime: at android.app.Fragment.performResume(Fragment.java:2551)
E AndroidRuntime: at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1346)
E AndroidRuntime: at android.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1581)
E AndroidRuntime: at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1642)
E AndroidRuntime: at android.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2220)
E AndroidRuntime: at android.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2166)
E AndroidRuntime: at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2067)
E AndroidRuntime: at android.app.FragmentManagerImpl$1.run(FragmentManager.java:742)
E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:938)
E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:99)
E AndroidRuntime: at android.os.Looper.loop(Looper.java:246)
E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:8653)
E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
E AndroidRuntime: Caused by: java.lang.ClassNotFoundException: androidx.fragment.app.FragmentActivity
E AndroidRuntime: ... 23 more
Describe the bug I have been using google play games plugin for years and recently I was making my game ready for a new update but google play game sign in caused an immediate crash. I figured I was using an outdated GPGS version(0.10.14) so I updated to the new version(0.11.01) and made the necessary configurations regarding the auto sign in. After creating a build and testing it I found out that whenever I try to load the achievements or leaderboards UI, the game crashes. Please also note that authentication and sign in work fine and I can submit score to the leaderboards and unlock achievements without any problems.
To Reproduce
Expected behavior Show the respective UI either Achievement or Leaderboard
Observed behavior App Crash
Versions
Unity version: 2021.3.16f1
Google Play Games Plugin for Unity version: 0.11.01
Additional context Other features of GPGP work fine. I have also implemented Firebase, Applovin and Facebook SDKs in my project and they all work just fine. Here's my mainTemplate.gradle
Full stack trace of the crash: