App crashing when mGoogleApiClient.connect(); is called

后端 未结 1 476
猫巷女王i
猫巷女王i 2021-01-22 22:30

I am trying to integrate a sign in feature for my app. But it crashes when the sign in button is pressed.

The log just shows that Signin button was clicked where mGoogle

相关标签:
1条回答
  • 2021-01-22 22:37

    add following with the app_id you registered from google in your Manifest file.

    <meta-data android:name="com.google.android.gms.appstate.APP_ID"
       android:value="@string/app_id" />
    

    if you're using this games too you might need to add following as well

    <meta-data android:name="com.google.android.gms.games.APP_ID"
        android:value="@string/app_id" />
    

    that could be the only reason. hope it helps

    0 讨论(0)
提交回复
热议问题