Sushen Biswas
Sushen Biswas

Reputation: 552

keytools -exportcert -list -v -alias androiddebugkey -keystore ~/.android/debug.keystore (for windows)

Debug Signing Certificate SHA-1

I run a android project and I want to connect my project to firebase.

To do that I need the sha 1 key. for that reason I have to run this code in my terminal.

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

Lot of people use this article to to that.

in my case its not working in my computer.

How I just run this commend in my computer. I use windows 10 and android 3.5

This is the screen shot of the problem

It will be more helpful if someone see my GitHub Repository. :

I also see a approach in this article but I just want to run this commend in my computer.

Upvotes: 2

Views: 1137

Answers (1)

Chirag Savsani
Chirag Savsani

Reputation: 6140

First set Path in the Environment Variable

E.g C:\Program Files\Java\jdk1.8.0_211\bin <Map Your JDK path>

Then run your command.

Or you can do it with the following way.

You can generate in Android Studio

Find Gradle in the top right corner.

Doble clicks on SigningReport.

enter image description here

You will find it in the console.

enter image description here

Upvotes: 2

Related Questions