{"id":179,"date":"2025-01-16T07:42:02","date_gmt":"2025-01-16T07:42:02","guid":{"rendered":"https:\/\/htmldesigntemplates.com\/top-stories-docs\/?p=179"},"modified":"2025-02-16T08:23:44","modified_gmt":"2025-02-16T08:23:44","slug":"build-and-release-android-app","status":"publish","type":"post","link":"https:\/\/htmldesigntemplates.com\/top-stories-docs\/2025\/01\/16\/build-and-release-android-app\/","title":{"rendered":"Build and Release android app"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/docs.flutter.dev\/deployment\/android\">https:\/\/docs.flutter.dev\/deployment\/android<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After following the above steps, you must generate sha1 key for google login to work.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In order to generate the SHA1 key, go to terminal and run the following command:<br><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To add an <strong>SHA-1 key<\/strong> to your Firebase project for <strong>Google Login<\/strong>, follow these steps:<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 1: Get Your SHA-1 Key<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The method to retrieve your SHA-1 key depends on how you&#8217;re developing your app:<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>For Debug SHA-1 (Android Studio)<\/strong><\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open a terminal in <strong>Android Studio<\/strong>.<\/li>\n\n\n\n<li>Run the following command: <code>.\/gradlew signingReport<\/code><\/li>\n\n\n\n<li>Look for <code>SHA1<\/code> under the <code>debug<\/code> section.<\/li>\n<\/ol>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>For Release SHA-1 (Production APK)<\/strong><\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li>If using a <strong>release keystore<\/strong>, run: <code>keytool -list -v -keystore path-to-keystore.jks -alias your-key-alias -storepass your-store-password -keypass your-key-password<\/code>\n<ul class=\"wp-block-list\">\n<li>Replace <code>path-to-keystore.jks<\/code> with your actual keystore file path.<\/li>\n\n\n\n<li>Replace <code>your-key-alias<\/code>, <code>your-store-password<\/code>, and <code>your-key-password<\/code> with your credentials.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"895\" height=\"242\" src=\"https:\/\/htmldesigntemplates.com\/top-stories-docs\/wp-content\/uploads\/sites\/71\/2025\/01\/image-47.png\" alt=\"\" class=\"wp-image-211\" srcset=\"https:\/\/htmldesigntemplates.com\/top-stories-docs\/wp-content\/uploads\/sites\/71\/2025\/01\/image-47.png 895w, https:\/\/htmldesigntemplates.com\/top-stories-docs\/wp-content\/uploads\/sites\/71\/2025\/01\/image-47-300x81.png 300w, https:\/\/htmldesigntemplates.com\/top-stories-docs\/wp-content\/uploads\/sites\/71\/2025\/01\/image-47-768x208.png 768w\" sizes=\"auto, (max-width: 895px) 100vw, 895px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>For Play Store (If Using App Signing by Google Play)<\/strong><\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to <strong>Google Play Console<\/strong>.<\/li>\n\n\n\n<li>Navigate to <strong>Setup > App Integrity<\/strong>.<\/li>\n\n\n\n<li>Copy the <strong>SHA-1 certificate fingerprint<\/strong>.<\/li>\n<\/ol>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 2: Add SHA-1 Key in Firebase Console<\/strong><\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Go to<\/strong> <a href=\"https:\/\/console.firebase.google.com\/\">Firebase Console<\/a>.<\/li>\n\n\n\n<li><strong>Select your project<\/strong>.<\/li>\n\n\n\n<li><strong>Click on the settings icon \u2699\ufe0f > Project settings<\/strong>.<\/li>\n\n\n\n<li><strong>Go to the \u201cGeneral\u201d tab<\/strong>.<\/li>\n\n\n\n<li><strong>Scroll down to \u201cYour apps\u201d<\/strong> and select the Android app you registered.<\/li>\n\n\n\n<li><strong>Under \u201cSHA certificate fingerprints,\u201d click \u201cAdd Fingerprint.\u201d<\/strong><\/li>\n\n\n\n<li><strong>Paste the SHA-1 key<\/strong> you obtained earlier.<\/li>\n\n\n\n<li><strong>Click Save<\/strong>.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Now your app should be able to authenticate users using Google Sign-In! \ud83d\ude80<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/docs.flutter.dev\/deployment\/android After following the above steps, you must generate sha1 key for google login to work. In order to generate the SHA1 key, go to terminal and run the following command: To add an SHA-1 key to your Firebase project for Google Login, follow these steps: Step 1: Get Your SHA-1 Key The method to &hellip; <a href=\"https:\/\/htmldesigntemplates.com\/top-stories-docs\/2025\/01\/16\/build-and-release-android-app\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Build and Release android app<\/span><\/a><\/p>\n","protected":false},"author":22,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[9],"tags":[],"class_list":["post-179","post","type-post","status-publish","format-standard","hentry","category-flutter"],"_links":{"self":[{"href":"https:\/\/htmldesigntemplates.com\/top-stories-docs\/wp-json\/wp\/v2\/posts\/179","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/htmldesigntemplates.com\/top-stories-docs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/htmldesigntemplates.com\/top-stories-docs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/htmldesigntemplates.com\/top-stories-docs\/wp-json\/wp\/v2\/users\/22"}],"replies":[{"embeddable":true,"href":"https:\/\/htmldesigntemplates.com\/top-stories-docs\/wp-json\/wp\/v2\/comments?post=179"}],"version-history":[{"count":2,"href":"https:\/\/htmldesigntemplates.com\/top-stories-docs\/wp-json\/wp\/v2\/posts\/179\/revisions"}],"predecessor-version":[{"id":213,"href":"https:\/\/htmldesigntemplates.com\/top-stories-docs\/wp-json\/wp\/v2\/posts\/179\/revisions\/213"}],"wp:attachment":[{"href":"https:\/\/htmldesigntemplates.com\/top-stories-docs\/wp-json\/wp\/v2\/media?parent=179"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/htmldesigntemplates.com\/top-stories-docs\/wp-json\/wp\/v2\/categories?post=179"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/htmldesigntemplates.com\/top-stories-docs\/wp-json\/wp\/v2\/tags?post=179"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}