{"id":340,"date":"2025-02-22T04:40:57","date_gmt":"2025-02-22T04:40:57","guid":{"rendered":"https:\/\/documentation.iqonic.design\/kivilab-laravel\/?p=340"},"modified":"2025-06-13T06:54:56","modified_gmt":"2025-06-13T06:54:56","slug":"how-to-generate-the-sha-in-android-studio","status":"publish","type":"post","link":"https:\/\/documentation.iqonic.design\/kivilab-laravel\/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\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 add to Firebase<\/p>\n\n\n\n<p><\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Estimated reading: 1 minute 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 if this line [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":0,"parent":173,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-340","post","type-post","status-publish","format-standard","hentry","category-kivilab"],"featured_image_src":null,"author_info":{"display_name":"","author_link":"https:\/\/documentation.iqonic.design\/kivilab-laravel\/author\/"},"children":[],"_links":{"self":[{"href":"https:\/\/documentation.iqonic.design\/kivilab-laravel\/wp-json\/wp\/v2\/posts\/340","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/documentation.iqonic.design\/kivilab-laravel\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/documentation.iqonic.design\/kivilab-laravel\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/documentation.iqonic.design\/kivilab-laravel\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/documentation.iqonic.design\/kivilab-laravel\/wp-json\/wp\/v2\/comments?post=340"}],"version-history":[{"count":2,"href":"https:\/\/documentation.iqonic.design\/kivilab-laravel\/wp-json\/wp\/v2\/posts\/340\/revisions"}],"predecessor-version":[{"id":378,"href":"https:\/\/documentation.iqonic.design\/kivilab-laravel\/wp-json\/wp\/v2\/posts\/340\/revisions\/378"}],"up":[{"embeddable":true,"href":"https:\/\/documentation.iqonic.design\/kivilab-laravel\/wp-json\/wp\/v2\/posts\/173"}],"wp:attachment":[{"href":"https:\/\/documentation.iqonic.design\/kivilab-laravel\/wp-json\/wp\/v2\/media?parent=340"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/documentation.iqonic.design\/kivilab-laravel\/wp-json\/wp\/v2\/categories?post=340"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/documentation.iqonic.design\/kivilab-laravel\/wp-json\/wp\/v2\/tags?post=340"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}