MYHOSPITALNOW.COM

Find Trusted Doctors & Hospitals

Discover healthcare providers, compare hospitals, and explore treatment options worldwide.

Free Treatment Quotes • Doctor Search • Hospital Comparison

Find Healthcare Options

www.myhospitalnow.com

How to Get SHA-1 key in Android Studio for Firebase.

There are two methods of getting SHA-1 key, but First one is not working for Windows user. So, if you are a Windows user then go for 2nd Method.

Update:- On Android Studio Latest version(on 24 Sept 2021) 2020.3.1 for Windows 64-bit (912 MiB), Step 2 will not Work. So, go for Step 3.

1. Using Keytool

Open a terminal and run the keytool the utility provided with Java to get the SHA-1 fingerprint of the certificate. You should get both the release and debug certificate fingerprints.

To get the release certificate fingerprint:

For Windows:-

keytool -list -v \
-alias androiddebugkey -keystore %USERPROFILE%\.android\debug.keystore

For Mac/Linux:-

keytool -list -v \
-alias androiddebugkey -keystore ~/.android/debug.keystore

Note:- If you are not able to get your SHA-1 key using Keytool then Follow the below Method, in this method you will definitely get your SHA-1 key.

2. Using Gradle’s Signing Report

You can also get the SHA-1 of your signing certificate by Gradle signingReport. But for that, you have to follow some steps.

Step 1: – First of all
=> open your project in Android Studio and open the project.
=>In the project, go to the android/app directory where you find build.gradle file. => Open it.
=> After opening, you’ll find an Open for Editing in Android Studio option, Click on it and open it in a new Tab. See the Below Image.

Android Studio project tree opening android/app/build.gradle, with Open for Editing in Android Studio highlighted

Step 2 :- After opening the file in the new tab, Wait for some time until Gradle Build Model Process Completes.

Android Studio build panel showing Gradle build starting, then finishing with BUILD SUCCESSFUL

=> After Build Successful, go to the upper-right section where you find the Gradle option. Click On it.
=> After that Open Android->Tasks->android and Double click on signingReport.
See the Below Image For Help.

Android Studio Gradle panel with android, Tasks, android expanded and signingReport highlighted

Step 3:- After Clicking on it, you’ll get a List of SHA-1 Keys but you have to choose Debug-Debug SHA-1 Key and copy and paste it on your Firebase. See the Below Image:-

Gradle signingReport output with Variant debug, Config debug and the SHA1 line highlighted to copy

Reference Video:- https://www.youtube.com/watch?v=JQKz5BOf-SQ&t=2s

3. Using gradlew

Step 1:- Right-click on ‘gradlew’ and go to ‘Open in Terminal’ This file is found under {{YOUR PROJECT}}/android/gradlew

Android Studio project tree with right-click menu on android/gradlew showing Open in Terminal

Step 2:-  Type the following in command.

gradlew signingReport

If did not work first try the second command:

<strong>./gradlew signingReport</strong>

Code language: HTML, XML (xml)
Terminal output of gradlew signingReport listing debug keystore with MD5, SHA1 and SHA-256 values redacted

Thanks for Reading.

Keep Coding.


Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
With MotoShare.in, you can book a bike instantly, enjoy doorstep delivery, and ride without worries. Perfect for travelers, professionals, and adventure enthusiasts looking for a seamless mobility solution.

Related Posts

How to get the SHA-1 fingerprint certificate for firebase in Android Studio for debug mode?

First, open Android Studio in your system and open or create a Flutter project after that open “Android” folder’s “app” folder and open “build.gradle“. When you open…

Read More

Android Studio SDK Version Compatibility Table with JDK and Gradle

Let’s add the latest Android Studio version for 2024 if available, with its corresponding Gradle and Java compatibility details. Based on typical release patterns, here’s an updated…

Read More

No version of NDK matched the requested version in flutter >> Solved.

Hello Guys i was trying to get The SHA1 key to integrate firebase in my flutter app.After updating to Android Gradle plugin 3.6.0 (released Feb 24, 2020), several project independently…

Read More

Develocity: The Complete Beginner-to-Advanced Tutorial

A practical self-study course covering Developer Productivity Engineering, Build Scan, Build Cache, build acceleration, test optimization, architecture, deployment, integrations, security, and enterprise operations. 28 chapters | Beginner…

Read More

Gradle Training Curriculum: Hands-On Learning Path for Build and DevOps Engineers

A revised, practical Gradle training guide based on the original course outline. It maps the agenda to hands-on labs, CI workflow, and team-ready build practices.

Read More

Sonatype Nexus Repository Manager: A Practical DevOps Introduction

Sonatype Nexus helps teams centralize dependency downloads and internal artifact publishing. This guide shows how Nexus fits into CI/CD, when to use hosted/proxy/group repos, and how to configure common build clients.

Read More