Google play services crash on start
Hello. I use https://github.com/playgameservices/play-games-plugin-for-unity When building project with Proguard minify i see auth not working and this error:
invalidoperationexception there was an error creating a gameservices object
But if i disable minify or modify proguard file, the app just crash on startup. I've updated all SDK/JDK and done Force Resolve after configuring google services, it went without errors. Also I cant figure out how do I properly get some useful logs from adb (they just flow at lightning speed in my console) In unity I use .net 4.5 Here is my Start for services (i have save games enabled in google console):
private void Start()
{
var config = new PlayGamesClientConfiguration.Builder()
.EnableSavedGames()
.Build();
PlayGamesPlatform.InitializeInstance(config);
PlayGamesPlatform.DebugLogEnabled = true;
PlayGamesPlatform.Activate();
PlayGamesPlatform.Instance.Authenticate(success => { DebugManager.Instance.DebugText.SetText(IsAuthenticated + "_well cmon"); }, false);
}
I've lost almost 2 days for that integration, any advice?
Answer by RiverCanvas · Oct 16, 2018 at 04:12 AM
Hi, sorry I am bit late but thought I could be of help. I solved this problem in two steps:
1) try placing GooglePlayGamesManifest.plugin in Assets/Plugins/Android folder. (not necessary step)
2) After making sure that your App ID is correct AndroidManifest file, try replacing '\ ' in front of your App Id with '\u003'.
you can also refer this video for same youtube video link
Answer by saadali211 · Oct 25, 2019 at 06:11 AM
APP CRASHED ON START FIXED
Unity 2019 app crashes when login to google play services and admob crash on unity is due to plugin problem.