Skip to content Skip to sidebar Skip to footer

Com.google.android.gms.common.api.apiexception: 12500

This is my first attempt.... trying to find the issue for last 2 days. I am trying to integrate google sign in to android app, however getting below: com.google.android.gms.common.

Solution 1:

I have this problem. And already solved it. Both SHA1 debug and relase already added to Firebase console, but still did not work. Also I try to only put SHA1 debug and still did not work. After so many try and error I solved it by completing info of "oAuth consent screen" from Credential menu, here is the steps:

  1. Sign in to Google Console Cloud
  2. Select your current project related with current Firebase project
  3. Navigate to API & Services
  4. Click Credential menu
  5. Click "oAuth consent screen"
  6. Add application logo, Application Homepage link and Application Privacy Policy link. To add both link you can just copy and paste from Authorized domains section from "oAuth consent screen", for example: your-app-abc123.firebaseapp.com

Solution 2:

Follow the Google developer documentation, In there clearly give instruction step by step how integrate google sign in to Android app.

https://developers.google.com/identity/sign-in/android/startImportant

  1. Check you have enable Google plus API in google console.
  2. After configuring your project into Google sing in it should be connected to the firebase. You just want to select your project on the firebase.
  3. Include JSON file into your project explorer.
  4. YOUR_SERVER_CLIENT_ID Check you have given correct sever client id.

Solution 3:

I struggled with the same error 12500 for hours. Apparently you need to fill in all the required information (App name, logo, email, authorized domains) on this page https://console.developers.google.com/apis/credentials on OAuth consent screen Tab

Solution 4:

Basically, the problem is in the SHA1 key put on console please regenerate it and put again properly same project.

1)As the answers, make sure that your actual signed Android apk has the same SHA1 fingerprint as what you specified in the console of your Firebase project's Android integration section (the page where you can download the google-services.json)

2)On top of that go to the Settings of your firebase project (gear icon right to the Overview at the top-left area. Then switch to Account Linking tab. On that tab link the Google Play to your project.

Solution 5:

If after tring all methods mentioned above you still cannot sign in, you also can try run the code on real device. I lost two days tring to sign in with android studio emulator. And if on real device you signed in successfuly then you need to update google play service on you emulator.

Post a Comment for "Com.google.android.gms.common.api.apiexception: 12500"