
\Java\jdk1.8.0_231\bin\, open command line and try the above commands for debug/release mode.Īnother way of getting your SHA1 OR SHA-256 use. On windows, when keytool command is not found, Go to your installed JDK Directory e.g. If this video helped you out, consider showing your support so that I can keep making free videos :Buy Me a Coffee. If you want to create a new project then check the article on How to Create a new Project in Android Studio. Then open google_maps_api.xml xml file as shown in pics you will see your SHA keyįollow this tutorial for creating SHA1 fingerprint for Google Map v2įor Debug mode: keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass androidįor Release mode: keytool -list -v -keystore Įxample: keytool -list -v -keystore C:\Users\MG\Desktop\test.jks -alias test Step by Step Guide to Generate SHA1, MD5, and SHA-256 Keys in Android Studio Step 1: For creating these keys you have to, first of all, create a new project in Android Studio or you can generate these keys in your existing projects as well. Result Under Run Tab If Android Studio Google Maps Activity It will tell you everything on the Run tab.Double click on android -> signingReport and see the magic.If you are using android studio use simple step Check 2nd and 3rd reference images.ġ-First add keystore config in your gradle How to add config in gradle.Ģ-After Adding Config in gradle change build variant.ģ-Then Follow Above Procedure you will get SHA-1 for release mode. If you are using new Android Studio it shows time to execute on top there is Toggle task execution mode click on that you will get you SHA-1 key. Double Click on signingReport (You will get SHA1 and MD5 in Run Bar).Click on Your Project (Your Project Name form List).Click on Refresh (Click on Refresh from Gradle Bar, you will see List Gradle scripts of your Project).Click on Gradle (From Right Side Panel, you will see Gradle Bar).Easiest way for getting SHA1 Key in android studio both (Debug and release Mode)
