{"id":150,"date":"2025-03-20T07:18:04","date_gmt":"2025-03-20T07:18:04","guid":{"rendered":"https:\/\/documentation.iqonic.design\/handyman\/?p=150"},"modified":"2025-06-03T10:47:26","modified_gmt":"2025-06-03T10:47:26","slug":"how-to-generate-the-sha-in-android-studio","status":"publish","type":"post","link":"https:\/\/documentation.iqonic.design\/handyman\/how-to-generate-the-sha-in-android-studio\/","title":{"rendered":"How to generate the SHA in Android Studio?"},"content":{"rendered":"<div class=\"nolwrap\">\n<h3 class=\"wp-block-heading\"><strong>Generate the SHA from Android Studio<\/strong><\/h3>\n\n\n\n<p>1. Create a file in android folder of your project name&nbsp;<code>key.properties<\/code>&nbsp;if not exists.<\/p>\n\n\n\n<p>2.Add properties and it&#8217;s value below<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">   storePassword=&lt;Your JKS password&gt;<br>   keyPassword=&lt;Your JKS Key Password&gt;<br>   keyAlias=&lt;You JKS Key Alias&gt;<br>   storeFile=&lt;Your jks file location path&gt;<\/pre>\n\n\n\n<p>3. Add following line to your Android\/app\/build.gradle file above the all&nbsp;<code>android<\/code>&nbsp;block (Check if this line already exist or not)<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">   def keystoreProperties = new Properties()<br>   def keystorePropertiesFile = rootProject.file('key.properties')<br>   if (keystorePropertiesFile.exists())<br>   {<br>          keystoreProperties.load(new FileInputStream(keystorePropertiesFile))<br>   }<\/pre>\n\n\n\n<p>4. Now in app:build.gradle android block check for below lines if not exist Add into your Android\/app\/build.gradle<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">   signingConfigs {<br>      release {<br>        keyAlias keystoreProperties['keyAlias']<br>        keyPassword keystoreProperties['keyPassword']<br>        storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null<br>        storePassword keystoreProperties['storePassword']<br>      }<br>   }<br><br>   buildTypes {<br>      release {<br>        signingConfig signingConfigs.release<br>      }<br>   }<\/pre>\n\n\n\n<p>5. Open your terminal and enter following command<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">   cd android<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">   .\/gradlew signinReport<\/pre>\n\n\n\n<p>Wait for a while it will generate your SHA Copy Both SHA1 and SHA256 for variant &amp; config&nbsp;<code>Debug<\/code>&nbsp;and&nbsp;<code>Release<\/code>&nbsp;and add to Firebase<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Open your&nbsp;<a href=\"https:\/\/play.google.com\/console\" target=\"_blank\" rel=\"noreferrer noopener\">Play Console<\/a><\/li>\n\n\n\n<li>Go to Setup \u2192 App signing<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1600\" height=\"768\" src=\"https:\/\/documentation.iqonic.design\/handyman\/wp-content\/uploads\/sites\/9\/2025\/03\/SHA_Android.png\" alt=\"\" class=\"wp-image-736\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Copy SHA1 and SHA256 of both&nbsp;<strong>&#8220;App signing key certificate&#8221;<\/strong>&nbsp;and&nbsp;<strong>&#8220;Upload key certificate&#8221;<\/strong><\/li>\n\n\n\n<li>Paste it to Firebase<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Generate the SHA from Android Studio 1. Create a file in android folder of your project name&nbsp;key.properties&nbsp;if not exists. 2.Add properties and it&#8217;s value below storePassword=&lt;Your JKS password&gt; keyPassword=&lt;Your JKS Key Password&gt; keyAlias=&lt;You JKS Key Alias&gt; storeFile=&lt;Your jks file location path&gt; 3. Add following line to your Android\/app\/build.gradle file above the all&nbsp;android&nbsp;block (Check if this [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":0,"parent":142,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-150","post","type-post","status-publish","format-standard","hentry","category-handyman-services"],"featured_image_src":null,"author_info":{"display_name":"laraveladminiq","author_link":"https:\/\/documentation.iqonic.design\/handyman\/author\/laraveladminiq\/"},"children":[],"_links":{"self":[{"href":"https:\/\/documentation.iqonic.design\/handyman\/wp-json\/wp\/v2\/posts\/150","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/documentation.iqonic.design\/handyman\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/documentation.iqonic.design\/handyman\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/documentation.iqonic.design\/handyman\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/documentation.iqonic.design\/handyman\/wp-json\/wp\/v2\/comments?post=150"}],"version-history":[{"count":4,"href":"https:\/\/documentation.iqonic.design\/handyman\/wp-json\/wp\/v2\/posts\/150\/revisions"}],"predecessor-version":[{"id":966,"href":"https:\/\/documentation.iqonic.design\/handyman\/wp-json\/wp\/v2\/posts\/150\/revisions\/966"}],"up":[{"embeddable":true,"href":"https:\/\/documentation.iqonic.design\/handyman\/wp-json\/wp\/v2\/posts\/142"}],"wp:attachment":[{"href":"https:\/\/documentation.iqonic.design\/handyman\/wp-json\/wp\/v2\/media?parent=150"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/documentation.iqonic.design\/handyman\/wp-json\/wp\/v2\/categories?post=150"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/documentation.iqonic.design\/handyman\/wp-json\/wp\/v2\/tags?post=150"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}