Google sign in failed com.google.android.gms.common.api.ApiException: 10:
Basically 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
)
For more info, see: Generate SHA-1 for Flutter app
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.
EDIT:
Account Linking tab doesn't exist any more, instead :
- Sign in to Firebase.
- Click the Settings icon, then select Project settings.
- Click the Integrations tab.
- On the Google Play card, click
Link
.
Google SignIn API Exception 10
This error might happen if you are not using same project at console.developers.google and console.firebase.google.com. If project is same at both console make sure you have add your SHA1 Key properly. Get SHA1 from Android studio.
- Open Android Studio
- Open your Project
- Click on Gradle (From Right Side Panel, you will see Gradle Bar)
- Click on Refresh (Click on Refresh from Gradle Bar, you will see List Gradle scripts of your Project)
- Click on Your Project (Your Project Name form List (root))
- Click on Tasks
- Click on Android
- Double Click on signingReport (You will get SHA1 and MD5 in Run Bar(Sometimes it will be in Gradle Console))
- Select app module from module selection dropdown to run or debug your application You also need to get google-services.json from firebase console and put into your project.
Related Topics
Find Distance Between Two Points on Map Using Google Map API V2
How to Change Android Minsdkversion in Flutter Project
Viewpager as a Circular Queue/Wrapping
How to Resize a Custom View Programmatically
Android Spinner with Multiple Choice
Android: Getting a File Uri from a Content Uri
Enable/Disable Data Connection in Android Programmatically
Data Binding Class Not Generated
How to Implement Recyclerview with Cardview Rows in a Fragment with Tablayout
Android Service Stops When App Is Closed
Webview: How to Avoid Security Alert from Google Play Upon Implementation of Onreceivedsslerror
Convert a PDF Page into Bitmap in Android Java
Android P - 'Sqlite: No Such Table Error' After Copying Database from Assets
Media Player Called in State 0, Error (-38,0)
Use Picasso to Get a Callback with a Bitmap