{"id":178,"date":"2025-07-23T07:44:24","date_gmt":"2025-07-23T07:44:24","guid":{"rendered":"https:\/\/documentation.iqonic.design\/prokit-flutter\/?p=178"},"modified":"2025-07-23T08:09:30","modified_gmt":"2025-07-23T08:09:30","slug":"how-to-generate-the-sha-in-android-studio","status":"publish","type":"post","link":"https:\/\/documentation.iqonic.design\/prokit-flutter\/how-to-generate-the-sha-in-android-studio\/","title":{"rendered":"How to generate the SHA In Android Studio"},"content":{"rendered":"<div class=\"nolwrap\">\n<pre class=\"wp-block-preformatted\">Estimated reading: 1 minute<\/pre>\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\u2019s 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>apply plugin<\/code>&nbsp;lines (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<\/div>","protected":false},"excerpt":{"rendered":"<p>Estimated reading: 1 minute 1.Create a file in android folder of your project name&nbsp;key.properties&nbsp;if not exists. 2. Add properties and it\u2019s 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;apply plugin&nbsp;lines (Check if this line [&hellip;]<\/p>\n","protected":false},"author":17,"featured_media":0,"parent":170,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-178","post","type-post","status-publish","format-standard","hentry","category-prokit-flutter"],"featured_image_src":null,"author_info":{"display_name":"flutteradminiq","author_link":"https:\/\/documentation.iqonic.design\/prokit-flutter\/author\/flutteradminiq\/"},"children":[],"_links":{"self":[{"href":"https:\/\/documentation.iqonic.design\/prokit-flutter\/wp-json\/wp\/v2\/posts\/178","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/documentation.iqonic.design\/prokit-flutter\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/documentation.iqonic.design\/prokit-flutter\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/documentation.iqonic.design\/prokit-flutter\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/documentation.iqonic.design\/prokit-flutter\/wp-json\/wp\/v2\/comments?post=178"}],"version-history":[{"count":2,"href":"https:\/\/documentation.iqonic.design\/prokit-flutter\/wp-json\/wp\/v2\/posts\/178\/revisions"}],"predecessor-version":[{"id":188,"href":"https:\/\/documentation.iqonic.design\/prokit-flutter\/wp-json\/wp\/v2\/posts\/178\/revisions\/188"}],"up":[{"embeddable":true,"href":"https:\/\/documentation.iqonic.design\/prokit-flutter\/wp-json\/wp\/v2\/posts\/170"}],"wp:attachment":[{"href":"https:\/\/documentation.iqonic.design\/prokit-flutter\/wp-json\/wp\/v2\/media?parent=178"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/documentation.iqonic.design\/prokit-flutter\/wp-json\/wp\/v2\/categories?post=178"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/documentation.iqonic.design\/prokit-flutter\/wp-json\/wp\/v2\/tags?post=178"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}