Description: I’m trying to connect an existing flutter project to the new Firestore database I’ve created, which I’m using as a Development database. I’ve built an apk for the app, on which authentication and everything else work fine. But when I run it directly from android studio, authentication doesn’t work.
The SHA1 I generated looks like this:
Variant: debugAndroidTest
Config: debug
Store: C:UsersAlula.androiddebug.keystore
Alias: AndroidDebugKey
MD5: **:**:**:**:**:**:**:**:**:**:**:**:**:**:**:**
SHA1: **:**:**:**:**:**:**:**:**:**:**:**:**:**:**:**:**:**:**:**
SHA-256: **:**:**:**:**:**:**:**:**:**:**:**:**:**:**:**:**:**:**:**:**:**:**:**:**:**:**:**:**:**:**
Valid until: Wednesday, October 11, 2053
I entered the SHA1 onto the app on the Dev db, got the google-services.json generated, and pasted it under the android/app directory. I also entered the dependencies for google services on build.gradle files.
What should I do differently to run it directly from Android Studio?
2
Answers
you have to add debug sha keys also. to get debug
sha
key run this command in terminal in your project directoryyou be prompted to enter password enter
android
as password and you will get debugsha
andmd5
keys.Try this for creating SHA1 fingerprint for Debug & Release mode:
For Debug mode:
For Release mode:
Example:
Another way of getting your SHA1 OR SHA-256 use
./gradlew signingReport