Generate SHA 1 Key In Flutter On Windows and macOS | Flutter 2.5 (Latest)
ฝัง
- เผยแพร่เมื่อ 5 ส.ค. 2024
- Generate SHA 1 Key In Flutter On Windows and macOS | Flutter 2.5 (Latest)
In this tutorial, we will be generating the SHA 1 and SHA 256 Key in both macOS and Windows OS for the latest Flutter 2.5 version. Many people face issues in generating the SHA 1 key in their macOS and Windows operating system, and so I thought of creating a complete tutorial that will help people from any kind of OS platform.
We have followed both the steps of creating the signature, like:
1. Using the terminal command.
2. Using the Android Studio method.
🔑 SHA-1 is required when you are linking your flutter application to firebase, and also this is required for google to create an OAuth client for our application.
IMPORTANT COMMANDS:
❇️ WINDOWS:
1. For creating the keystore file i.e., debug.keystore
keytool -genkey -v -keystore debug.keystore -alias androiddebugkey -storepass android -keypass android -keyalg RSA -keysize 2048 -validity 10000
2. For viewing the SHA-1 key from the keystore file that we created
keytool -list -v -keystore "C:\Users\Shivansh Singh["Replace with your uername"]\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android
❇️ macOS
1. For creating the keystore file
keytool -genkey -v -keystore debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000
2. For generating the SHA-1 key
keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android
JAVA SE 8 : www.oracle.com/java/technolog...
🤞 You will be learning :
1. How to Install JAVA JDK on your macOS and Windows OS
2. How to create keystore using Keytool command.
3. Using Flutter Doctor to solve all the issues.
4. Accepting the Android Licenses.
Course Content 📚
00:00 Introduction
00:35 SHA-1 Key on Windows
00:40 Windows: PreRequisite for Creating the key
01:45 Windows: Terminal Method For SHA-1 Key
04:40 Windows: Android Studio method for Creating Key
05:36 SHA-1 Key on macOS
► ALSO LEARN TO INTEGRATE GOOGLE and FACEBOOK SIGN IN TO YOUR APPS:
📗 Complete Google and Facebook Login In Flutter | Flutter & Firebase Authentication 2021 (Part 1)
• Complete Google and Fa...
📗 Facebook Login In Flutter | Flutter & Firebase Authentication For Beginners 2021 (Part 2)
• Facebook Login In Flut...
🔔 Get updated with my projects🔔
Follow me on Github: github.com/backslashflutter
#sha-1key #flutter #backslashflutter
🔥 Subscribe for more:
/ backslashflutter
If this helps make sure to share it with friends and colleagues who will benefit from this
Have questions/queries? 💬 Comment below I will be happy to help
►For the 3D intro, I'm using Rotato: rotato.xyz
🎵Credits :
Music Used:
JARICO - LANDSCAPE • Video
softy x no one’s perfect - The Beauty Around Us ✨ [lofi hip hop/relaxing beats]
Reddit Username : @backslashflutter
🔗OTHER:
PLAYLIST:
1. FLUTTER AND FIREBASE
LINK :bit.ly/35Uq7Ba
2. FLUTTER SPEEDCODE
LINK: bit.ly/3sFDy1O
OTHER VIDEO:
Complete Flutter Installation & Setup Tutorial For App Development on MacOS (Latest)
• Complete Flutter Insta...
Learn API Integration in Flutter | Building A Dictionary App with OwlBot API | (Under 20 Minute)
• Learn API Integration ...
ChatBot App In Flutter | Python Backend With Flutter | Heroku Server (Full Explanation)
• ChatBot App In Flutter...
About Flutter:
Flutter is an open-source UI software development kit created by Google. It is used to develop cross platform applications for Android, iOS, Linux, Mac, Windows, Google Fuchsia, and the web from a single codebase. The first version of Flutter was known as codename "Sky" and ran on the Android operating system.
THANKS FOR LOVE AND SUPPORT💪
SHA Key Command :
developers.google.com/android/guides/client-auth
LIKE, SHARE SUBSCRIBE❤
How did you make the animation of your channel backslaeh? !:)
oh man, I have been looking solution about creating keystore for 3 days. I just got a sha1 key after creating keystore. Man You have one abonent forever. Huge hearth for You. Thanks a lot !!!!!!!!!!!!!!!!!!
Thank you so much for being the part of our family ☺️
Thank you so much man. The video helped a lot. I looked through many videos, but this did the trick.
Thanks for watching mate~!
i don't have word to thank you .
after 48 hours of trying finally it works
I know mate! this sha issue is something which 99% people struggle with and so I wanted to create a complete tutorial for both windows and mac users
Same,stuck for like 10 hours 🥲🥲
What a legend man. This video still works on 2023. Thank youu!
thanks for watching mate
I have dealing problems with a deprecable Gradle on Android Studio. Your terminal method saved me. Thank you.
Thank you so much for watching the video
thank you so very much for this tutorial, really helped out a lot!!!!
Glad it helped!
Thanks bro, I've been trying to figure out the keystore since last year... thanks bro... you just earnt one more permanent subscriber. 😀
Thanks for the sub!
Thank you!! You fixed my long lasting bug!!!
Thank you, very good explained!
thanks for watching and subscribing!
Thank you so much for this video ❤❤❤
Thaaaank you so much my friend
Great video brother thanks
Thank you very very much ! I finally able to find sha key
You are welcome!
Legend - thankyou very much!
Thank you soo much mate for watching the video !
Thank you very much for this, i got it on first try
Thanks man !
thanks a lot man. Great work.
thanks for watching
Sir thank you so much. Your vedios helped me alot 😍❤️
ok sir😂
Jazakallah Brotherrrrr
thank u sir . i am very very thankful to u 😍😍🥰🥰🥰🥰
Thanks !!
💓
Very useful thanks a lot
💓💓💓
worked, many thanks
thankks for watching mate
You just earned a new sub bro🙂 Thank you so much for your service
thanks for watching
Thanks a lot!
You're welcome!
thanks bro that help me lot!!!
thanks for watchin
thank you
thank you🙃🙃
You're welcome 😊
thank you friend, you are amazing
Thanks for watching
THANKS A LOT ❤❤
Thanks for subscribing 👋💫
After installing java, the "keytool" command is not recognized yet and you need to add the location of C:\Program Files\Java\jre1.8.0_351\bin to the window environment "PATH".
i already told that step in video
Thanks!!
thank you
Thankyou so much 💖💖
❤️🥳
Hey king you droped this 👑
thankssss ❤️✌️
thank you so much
Thanks for watching
Thanks a lot
Thanks for watching
Muito obrigado amigo, em 5 minutos voce me ajudou no que eu tava levando 4 horas, thank you very much
Sem problemas amigo, obrigado por se inscrever e se tornar parte da nossa família
Thanks a lot be blessed 🤲🏾
Thanks for watching
it work thanks
You're welcome!
thank you,
but im using visual studio,
then how can I do this on it ?
thanks mate
Thanks for being the part of our family 💞
Perfeito deu certo, muito obrigado !!!
thanks brooo
thanks for watching
i really appreciate 👍👍👍
Thanks for liking
sahi video bhai error solve hua
thanks bhai
I can't find the .android folder on my macOS, help-me
How did you make that animation (the one for your channel?) :)
Your animation at the start of the video is so crazy how did you do it Thankyou sir
Can we only have sha key if java version is 8
Muchas gracias amigo
Gracias por ver
After installing it is important to update the system variables with the java folder and add /bin at the end
yes bro, updating the system environment variables will help the cmd command on your windows machine to know the locaiton of java sdk.
Once the cmd knows the location of that thing, you can easily use the keytool command.
my mac doesn't have .android folder is this problem due to android studio not installed on my mac or other plz tell me ?
.android folder would be installed when you install the android studio and run it for the first time
I am unable to find debug.keystore in my PC, please help
Help!! gradlew singingReport ERROR. Cant find the JAVA_HOME path even thought i already set the JAVA_HOME at system variables environment
can you double check your bashrc file
enter this command:
sudo nano ~/.bashrc
at the end of this file enter
JAVA_HOME = / path of java jdk /
@@backslashflutter i already try run this command at flutter vsc, powershell and cmd. i received this error.
sudo : The term 'sudo' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and
try again.
At line:1 char:1
+ sudo nano ~/.bashrc
+ ~~~~
+ CategoryInfo : ObjectNotFound: (sudo:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException.
@@backslashflutter For gradlew signingReport, when i run gradlew signingReport. The same thing error come out. and when i try run ./gradlew signingReport, it pop out this error.
ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.
@@backslashflutter btw thank you for response good sir. i only stuck at this point of the video :(
@@MrNazrulstylo check your spelling, i had the same error there is no g after the n at the end. It's not singingReport it's signinReport
I follow all instructions but it still says keytool' is not recognized as an internal or external command
😂 if you have installed java jdk 8 then remember to add that in path, if you are on mac then also i have mentioned the steps and also for the windows,steps are mentioned there
its says illegal option while i enter the keytool command. what do I do?
first type keytool and check if keytool is present.
Wah
ok🥲
great vid but it says the alias androiddebugkey does not exist even though i have the key in my android folder with path done,
you on mac or windows? Also is this issue still present or it is resolved.
after downloading java still showing keytool not recognized please help
If you are using windows pc, then you need to set the environment variables for java jdk. Please have a look at video and there you will see the method for adding java jdk path to environment variables. Once they are added, you will be able to use keytool command in your terminal, and follow up with the sha-1 signature genreation.
# request responsive ui tuorial .....text size n all..
sure ❤
I downlad java sdk but when i type keytool nothin happen
same issue
How change my sha-1 key ?
delete the old one and proceed with the steps again.
❤❤
💪
How to create different SAH keys for different projects brother
You could have asked how to create differenet sha signature for different pc. The keytool package that comes installed with the java jdk, creates a unique identifier using the current user pc.
@@backslashflutter brother can we use one sah key for all our project's ?
@@backslashflutter or every project needs different sah keys individually
how to change this SHA 1 key
Why do you want to change SHA-1 signature?
sir where to find that keystore passwords
android
which password i should give there
you can use anything, go with android
It works bt pls add the key password also in description.
key password : android
what is the keystore password?
android
Thanks a lot, brother. Spent hours, finally worked with second approach using gradlew command. Got an error, had to use '.\gradlew signingReport'
PS C:\Users\asus\Pictures\test-demo\Dealitup001\project 2.5 official\AppSource Code\user\New Customer\android> gradlew signinReport
gradlew : The term 'gradlew' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify
that the path is correct and try again.
At line:1 char:1
+ gradlew signinReport
+ ~~~~~~~
+ CategoryInfo : ObjectNotFound: (gradlew:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Suggestion [3,General]: The command gradlew was not found, but does exist in the current location. Windows PowerShell does not load commands from the current location by default. If yo
u trust this command, instead type: ".\gradlew". See "get-help about_Command_Precedence" for more details. Sir Please check this error and please provide a soluction
please migrate to the right directory that is mentioned in the video. I can see the firetory that you are migrating is in Users\asus\Pictures,
For generating the sha signature and also for vieweing those signature we have the command for windows mentioned in the description of this video
Thanks a lot!!!
You're welcome!