Hi.
Help me to understand.
When I build in a “Development mode” everything works. But In this mode, i cannot sign a build (what need to download in Google Play Console). But, if unchecked “Development mode” , then an error will appear in the Logcat when i try to call authenticate (Social.localUser.Authenticate).
error
2021.11.07 21:15:07.692 21846 21870 Error Unity AndroidJavaException: java.lang.ClassNotFoundException: com.google.android.gms.games.Games
2021.11.07 21:15:07.692 21846 21870 Error Unity java.lang.ClassNotFoundException: com.google.android.gms.games.Games
2021.11.07 21:15:07.692 21846 21870 Error Unity at java.lang.Class.classForName(Native Method)
2021.11.07 21:15:07.692 21846 21870 Error Unity at java.lang.Class.forName(Class.java:454)
2021.11.07 21:15:07.692 21846 21870 Error Unity at com.unity3d.player.UnityPlayer.nativeRender(Native Method)
2021.11.07 21:15:07.692 21846 21870 Error Unity at com.unity3d.player.UnityPlayer.access$300(Unknown Source:0)
2021.11.07 21:15:07.692 21846 21870 Error Unity at com.unity3d.player.UnityPlayer$e.handleMessage(Unknown Source:95)
2021.11.07 21:15:07.692 21846 21870 Error Unity at android.os.Handler.dispatchMessage(Handler.java:103)
2021.11.07 21:15:07.692 21846 21870 Error Unity at android.os.Looper.loop(Looper.java:224)
2021.11.07 21:15:07.692 21846 21870 Error Unity at com.unity3d.player.UnityPlayer$e.run(Unknown Source:20)
2021.11.07 21:15:07.692 21846 21870 Error Unity Caused by: java.lang.ClassNotFoundException: com.google.android.gms.games.Games
2021.11.07 21:15:07.692 21846 21870 Error Unity … 8 more
2021.11.07 21:15:07.692 21846 21870 Error Unity at UnityEngine.AndroidJNISafe.CheckException () [0x00000] in <00000000000000000000000000000000>:0
2021.11.07 21:15:07.692 21846 21870 Error Unity at UnityEngine.AndroidJNISafe.FindClass (System.String name) [0x00000] in <00000000000000000000000000000000>:0
2021.11.07 21:15:07.692 21846 21870 Error Unity at UnityEngine.AndroidJavaClass._AndroidJavaClass (System.String className) [0x00000] in <000000000000
Im using:
Windows 10
Unity 2020.2.22f1 (LTS)
GooglePlayGamesPlugin-0.10.12
In scene, only this example: https://github.com/playgameservices/play-games-plugin-for-unity/tree/master/samples/Minimal
In Unity:
SDK,NDK,JDK are connected and working properly.
SignKey Installed
“Minify” → “Release” cheked
“IL2CCP” selected
“ARMv7” and “ARM64” checked
“Android setup” filled
“Force Resolved” did
In Google:
SHA1 Upload matches with Google Cloud Platform
Google Play Sevirce Credentials is configured and Publish.
I don’t know what could be wrong. I can’t find any answer for a week. but nothing helps.
Dont works with Upload key in local test and dont works with App key in Google test.
Please tell me where to look for the problem.