{"id":68,"date":"2025-03-05T06:21:32","date_gmt":"2025-03-05T06:21:32","guid":{"rendered":"https:\/\/documentation.iqonic.design\/streamit-tv\/?p=68"},"modified":"2025-06-12T10:20:51","modified_gmt":"2025-06-12T10:20:51","slug":"how-to-generate-the-sha-in-android-studio","status":"publish","type":"post","link":"https:\/\/documentation.iqonic.design\/streamit-tv-app\/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\u00a0<code>key.properties<\/code>\u00a0if 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\u00a0<code>apply plugin<\/code>\u00a0lines (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\u00a0<code>Debug<\/code>\u00a0and\u00a0<code>Release<\/code>\u00a0and which needs to be added into Firebase<\/p>\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\u00a0key.properties\u00a0if 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\u00a0apply plugin\u00a0lines (Check [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":0,"parent":60,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-68","post","type-post","status-publish","format-standard","hentry","category-streamittv"],"featured_image_src":null,"author_info":{"display_name":"laraveladminiq","author_link":"https:\/\/documentation.iqonic.design\/streamit-tv-app\/author\/laraveladminiq\/"},"children":[],"_links":{"self":[{"href":"https:\/\/documentation.iqonic.design\/streamit-tv-app\/wp-json\/wp\/v2\/posts\/68","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/documentation.iqonic.design\/streamit-tv-app\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/documentation.iqonic.design\/streamit-tv-app\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/documentation.iqonic.design\/streamit-tv-app\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/documentation.iqonic.design\/streamit-tv-app\/wp-json\/wp\/v2\/comments?post=68"}],"version-history":[{"count":2,"href":"https:\/\/documentation.iqonic.design\/streamit-tv-app\/wp-json\/wp\/v2\/posts\/68\/revisions"}],"predecessor-version":[{"id":222,"href":"https:\/\/documentation.iqonic.design\/streamit-tv-app\/wp-json\/wp\/v2\/posts\/68\/revisions\/222"}],"up":[{"embeddable":true,"href":"https:\/\/documentation.iqonic.design\/streamit-tv-app\/wp-json\/wp\/v2\/posts\/60"}],"wp:attachment":[{"href":"https:\/\/documentation.iqonic.design\/streamit-tv-app\/wp-json\/wp\/v2\/media?parent=68"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/documentation.iqonic.design\/streamit-tv-app\/wp-json\/wp\/v2\/categories?post=68"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/documentation.iqonic.design\/streamit-tv-app\/wp-json\/wp\/v2\/tags?post=68"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}