ERROR
PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 10: , null, null)
SOLUTION
The following solution works in the flutter project:
Step 1: Generate SHA1 and SHA256 keys. (Don’t know how to generate SHA1 and SHA256 keys. Click Here)
Step 2: Add both the SHA1 and SHA256 to firebase. (in your app settings)
Step 3: Download google-services.json to android/app in your project folder.
Step 4: In your terminal run the command flutter clean. Step 5: Run your flutter app.
For more information visit:
https://developers.google.com/android/guides/client-auth
https://firebase.google.com/docs/flutter/setup
That’s All.
Thanks for Reading.
Keep Coding.
Latest posts by Sushant Kumar (see all)
- What is On-Page Optimization and Off-page Optimization - March 14, 2024
- [SOLVED] Flutter : PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 10: , null, null) - December 7, 2021
- [Solved] Flutter : Error: The getter ‘subhead’ isn’t defined for the class ‘TextTheme’ from package:flutter/src/material/text_theme.dart’ – searchable_dropdown - December 6, 2021