{"id":169,"date":"2025-02-20T06:42:38","date_gmt":"2025-02-20T06:42:38","guid":{"rendered":"https:\/\/documentation.iqonic.design\/kivilab-laravel\/?p=169"},"modified":"2025-06-26T09:31:42","modified_gmt":"2025-06-26T09:31:42","slug":"android-configuration","status":"publish","type":"post","link":"https:\/\/documentation.iqonic.design\/kivilab-laravel\/android-configuration\/","title":{"rendered":"Android Configuration"},"content":{"rendered":"<div class=\"nolwrap\">\n<pre class=\"wp-block-preformatted\">Estimated reading: 3 minutes<\/pre>\n\n\n\n<p>Setting up Android for your KiviLabs Project<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Open Android Module<\/strong><\/h2>\n\n\n\n<p>The Android module can be accessed in&nbsp;<strong>Two ways<\/strong>:<\/p>\n\n\n\n<p>1. Select the&nbsp;<strong>Android Module<\/strong>&nbsp;from the same project you&#8217;re attempting to open by going to&nbsp;<strong>File -&gt; Open<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1493\" height=\"606\" src=\"https:\/\/documentation.iqonic.design\/kivilab-laravel\/wp-content\/uploads\/sites\/6\/2025\/02\/android_1.png\" alt=\"\" class=\"wp-image-318\" \/><\/figure>\n\n\n\n<p>2. Navigate to&nbsp;<strong>Tools -&gt; Flutter -&gt; Android Studio -&gt; Open Android Module<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1536\" height=\"864\" src=\"https:\/\/documentation.iqonic.design\/kivilab-laravel\/wp-content\/uploads\/sites\/6\/2025\/02\/android_2.png\" alt=\"\" class=\"wp-image-319\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Change The Application Id<\/strong><\/h2>\n\n\n\n<p><strong>IMPORTANT<\/strong><\/p>\n\n\n\n<p>Every Android app has a unique application ID that looks like a Java package name, such as com.example.myapp. This ID uniquely identifies your app on the<\/p>\n\n\n\n<p>device and in the Google Play Store. Once you publish your app, you should never change the Application ID.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>For Application ID, change the&nbsp;<strong>applicationId<\/strong>&nbsp;in the&nbsp;<code>app\/build.gradle<\/code>&nbsp;file.<\/li>\n\n\n\n<li>Locate the&nbsp;<code>build.gradle<\/code>&nbsp;file at this path:&nbsp;<code>android\/app\/build.gradle<\/code>.<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">defaultConfig {<br>    applicationId \"YOUR_PACKAGE_NAME\"<br>    minSdkVersion 21<br>    targetSdkVersion 31<br>    versionCode 1<br>    versionName \"1.0\"<br>    testInstrumentationRunner \"android.support.test.runner.AndroidJUnitRunner\"<br>}<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Change The Version Name<\/strong><\/h2>\n\n\n\n<p><strong>IMPORTANT<\/strong><\/p>\n\n\n\n<p>The version name is a string value that represents the \u201cfriendly\u201d version name displayed to the users. The version name is displayed to the user.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>For Version Name, change the&nbsp;<code>versionName<\/code>&nbsp;in the&nbsp;<code>build.gradle<\/code>&nbsp;file at the app level.<\/li>\n\n\n\n<li>Locate the&nbsp;<code>build.gradle<\/code>&nbsp;file at this path:&nbsp;<code>android\/app\/build.gradle<\/code>.<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">defaultConfig {<br>    applicationId \"com.iqonic.example\"<br>    minSdkVersion 21<br>    targetSdkVersion 31<br>    versionCode 1<br>    versionName \"CHANGE_THE_VERSION_NAME\"<br>    testInstrumentationRunner \"android.support.test.runner.AndroidJUnitRunner\"<br>}<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Change The Version Code<\/strong><\/h2>\n\n\n\n<p><strong>IMPORTANT<\/strong><\/p>\n\n\n\n<p>The version code is an incremental integer value that represents the version of the application code. The version code is used by the Google Play Store for new updates. If you increase the version code, the update will be visible to all users.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>For Version Code, change the&nbsp;<code>versionCode<\/code>&nbsp;in the&nbsp;<code>build.gradle<\/code>&nbsp;file at the app level.<\/li>\n\n\n\n<li>Locate the&nbsp;<code>build.gradle<\/code>&nbsp;file at this path:&nbsp;<code>android\/app\/build.gradle<\/code>.<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">defaultConfig {<br>    applicationId \"com.iqonic.example\"<br>    minSdkVersion 21<br>    targetSdkVersion 31<br>    versionCode \"CHANGE_THE_VERSION_CODE\"<br>    versionName \"1.0.0\"<br>    testInstrumentationRunner \"android.support.test.runner.AndroidJUnitRunner\"<br>}<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Change The App Name From Manifest File<\/strong><\/h2>\n\n\n\n<p><strong>IMPORTANT<\/strong><\/p>\n\n\n\n<p>To change the name of your Android application in Android Studio, you have to change the value of the property&nbsp;<code>android:label<\/code>&nbsp;defined inside the&nbsp;<code>&lt;application&gt;<\/code>&nbsp;node in&nbsp;<code>AndroidManifest.xml<\/code>.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-text-color has-link-color wp-elements-cdbba7e7b542776651af086164b805a5\">&lt;application<br>    android:label=\"YOUR_APP_NAME\"&gt;<br>&lt;\/application&gt;<\/pre>\n\n\n\n<p><strong>IMPORTANT<\/strong><\/p>\n\n\n\n<p>Android Studio includes a tool called Image Asset Studio that helps you generate your own app icons from material icons, custom images, and text strings. It generates a set of icons at the appropriate resolution for each pixel density that your app supports. Image Asset Studio places the newly generated icons in density-specific folders under the res\/ directory in your project. At runtime, Android uses the appropriate resource based on the screen density of the device your app is running on.<\/p>\n\n\n\n<p>Image Asset Studio helps you generate the following icon types:<\/p>\n\n\n\n<p><a href=\"https:\/\/developer.android.com\/studio\/write\/create-app-icons#create-adaptive\" target=\"_blank\" rel=\"noreferrer noopener\">\u2013 Launcher icons Adaptive &amp; Legacy<\/a><br>\u2013&nbsp;<a href=\"https:\/\/developer.android.com\/studio\/write\/create-app-icons#create-legacy\" target=\"_blank\" rel=\"noreferrer noopener\">Legacy Launcher Icon<\/a><br><a href=\"https:\/\/developer.android.com\/studio\/write\/create-app-icons#create-actionbartab\" target=\"_blank\" rel=\"noreferrer noopener\">\u2013 Action bar and Tab Icons<\/a><br><a href=\"https:\/\/developer.android.com\/studio\/write\/create-app-icons#create-notification\" target=\"_blank\" rel=\"noreferrer noopener\">\u2013 Notification icons<\/a><br>\u2013 Tv Banner<br>\u2013 Tv Channel Icon<\/p>\n\n\n\n<p>For More Details You can checkout&nbsp;<a href=\"https:\/\/developer.android.com\/studio\/write\/create-app-icons\" target=\"_blank\" rel=\"noreferrer noopener\">Android Studio Editor<\/a>&nbsp;Guide for creating Android Icons.<\/p>\n\n\n\n<p><strong>Generate Icon Process<\/strong><\/p>\n\n\n\n<p><strong><a href=\"https:\/\/apps.iqonic.design\/documentation\/kivicare-laravel-doc\/build\/docs\/getting-started\/app\/Configuration\/android#generate-icon-process\" target=\"_blank\" rel=\"noopener\">\u200b<\/a><\/strong>\u2013 Configure Image Asset<\/p>\n\n\n\n<p>Choose Icon type<br>Set Icon Name<br>Choose Asset Type<br>Customize Icon (Resize , Trim , Padding)<\/p>\n\n\n\n<p>\u2013 Confirm Icon Path<\/p>\n\n\n\n<p>Choose Mode for Icon<br>Finish<\/p>\n\n\n\n<p><strong>Generate App Launcher Icon<\/strong><\/p>\n\n\n\n<p>Method 1 : Use Android Studio To Generate Launcher Icons<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Go to&nbsp;<code>android\/app\/src\/main\/res<\/code>&nbsp;folder.<\/li>\n\n\n\n<li>Right-click on the&nbsp;<code>res<\/code>&nbsp;folder and select&nbsp;<code>New \u2192 Image Asset<\/code>.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"544\" src=\"https:\/\/documentation.iqonic.design\/kivilab-laravel\/wp-content\/uploads\/sites\/6\/2025\/02\/launcher_icon.png\" alt=\"\" class=\"wp-image-325\" \/><\/figure>\n\n\n\n<p><strong>INFO<\/strong><\/p>\n\n\n\n<p>Foreground Layer : The foreground layer is the primary part of the icon that contains the main visual elements. It\u2019s the layer that the user selects the source asset for, which can be an image, clip art or text.<\/p>\n\n\n\n<p>Background Layer : The background layer is the area behind the foreground layer. It can be used to add a background color or image element to the icon. If you don\u2019t want green background for laucher Icon then set background layer suitable to your Launcher Icon.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"720\" src=\"https:\/\/documentation.iqonic.design\/kivilab-laravel\/wp-content\/uploads\/sites\/6\/2025\/02\/launcher_icon2.png\" alt=\"\" class=\"wp-image-326\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Choose Icon Type &#8211;&nbsp;<strong>&#8220;Launcher icons Adaptive &amp; Legacy&#8221;<\/strong><\/li>\n\n\n\n<li>Select the path of your Image and press Next.<\/li>\n\n\n\n<li>Select App mode for app Icon.<\/li>\n\n\n\n<li>Then Press Finish.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"719\" src=\"https:\/\/documentation.iqonic.design\/kivilab-laravel\/wp-content\/uploads\/sites\/6\/2025\/02\/launcher_icon4.png\" alt=\"\" class=\"wp-image-327\" \/><\/figure>\n\n\n\n<p>Method 2 : Generate Online<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/icon.kitchen\/i\/H4sIAAAAAAAAA6tWKkvMKU0tVrKqVkpJLMoOyUjNTVWyKikqTa3VUcrNTynNAUlGKyXmpRTlZ6Yo6Shl5hcDyfLUJKXYWgA19PHYPwAAAA%3D%3D\" target=\"_blank\" rel=\"noreferrer noopener\">Icon Kitchen<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/appicon.co\/\" target=\"_blank\" rel=\"noreferrer noopener\">App Icon Generate<\/a><\/li>\n<\/ul>\n\n\n\n<p>The basic process of this website is &#8211;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Choose Asset type<\/li>\n\n\n\n<li>Basic Configuration<\/li>\n\n\n\n<li>Choose Device Type<\/li>\n\n\n\n<li>Generate and Get the Zip<\/li>\n\n\n\n<li>After extracting zip you get res folder replace it with your android\/app\/src\/main \u2013 res folder<\/li>\n<\/ul>\n\n\n\n<p>Generate Notification Icon<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Go to&nbsp;<code>android\/app\/src\/main\/res<\/code>&nbsp;folder.<\/li>\n\n\n\n<li>Right-click on the&nbsp;<code>res<\/code>&nbsp;folder and select&nbsp;<code>New \u2192 Image Asset<\/code>.<\/li>\n\n\n\n<li>Choose Icon Type &#8211;&nbsp;<strong>&#8220;Notification&#8221;<\/strong><\/li>\n\n\n\n<li>Select the path of your Image and press Next.<\/li>\n\n\n\n<li>Select App mode for app Icon.<\/li>\n\n\n\n<li>Then Press Finish.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"719\" src=\"https:\/\/documentation.iqonic.design\/kivilab-laravel\/wp-content\/uploads\/sites\/6\/2025\/02\/notification_icon.png\" alt=\"\" class=\"wp-image-328\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"719\" src=\"https:\/\/documentation.iqonic.design\/kivilab-laravel\/wp-content\/uploads\/sites\/6\/2025\/02\/notification_icon2.png\" alt=\"\" class=\"wp-image-329\" \/><\/figure>\n\n\n\n<p>Change notification icon in Androidmanifest.xml<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Navigate to&nbsp;<strong>android\/app\/src\/main<\/strong>.<\/li>\n\n\n\n<li>Open your Androidmanifest.xml and check for lines below. If not exist just add this line otherwise Paste the Name of Icon you just created into \u201candroid:resource\u201c.<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;meta-data<br>    android:name=\"com.google.firebase.messaging.default_notification_icon\"<br>    android:resource=\"@drawable\/ic_stat_notification\" \/&gt;<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>INFO<\/strong><\/h3>\n\n\n\n<p>Update notification icon name into&nbsp;<strong>\u201clib \u2192 utils \u2192 push_notification_service.dart\u201d<\/strong>&nbsp;Follow the Steps mentioned in&nbsp;<a href=\"https:\/\/documentation.iqonic.design\/kivilab-laravel\/flutter-configuration\/\">Flutter Configuration<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Add Google JSON File<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>INFO<\/strong><\/h3>\n\n\n\n<p>As part of enabling Google APIs or Firebase services in your Android application, you need to set up Firebase and download the Google JSON file.<\/p>\n\n\n\n<p><a href=\"https:\/\/documentation.iqonic.design\/kivilab-laravel\/configurations-customization\/firebase-configuration\">Click Here<\/a>&nbsp;to set up Firebase and download the Google JSON file.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Generate Signed APK<\/strong><\/h2>\n\n\n\n<p>To generate a signed APK (Android Package), follow these steps:<\/p>\n\n\n\n<p>1. Open the&nbsp;<strong>build<\/strong>&nbsp;menu and Select&nbsp;<strong>Generate Signed Bundle\/APK<\/strong>.Choose&nbsp;<strong>APK<\/strong>&nbsp;and click&nbsp;<strong>Next<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1536\" height=\"864\" src=\"https:\/\/documentation.iqonic.design\/kivilab-laravel\/wp-content\/uploads\/sites\/6\/2025\/02\/android_3.png\" alt=\"\" class=\"wp-image-320\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1536\" height=\"768\" src=\"https:\/\/documentation.iqonic.design\/kivilab-laravel\/wp-content\/uploads\/sites\/6\/2025\/02\/android_4.png\" alt=\"\" class=\"wp-image-321\" \/><\/figure>\n\n\n\n<p>2. Now you will have two options create a new Keystore or choose existing keystore.<\/p>\n\n\n\n<p>If you choose to create a new keystore:<\/p>\n\n\n\n<p>A dialogue will appear, prompting you to specify the path of the keystore and give it a name.<\/p>\n\n\n\n<p>Enter your password and confirm it.<\/p>\n\n\n\n<p>Select the alias name.<\/p>\n\n\n\n<p>Confirm the password.<\/p>\n\n\n\n<p>Enter any additional information if required.<\/p>\n\n\n\n<p>Click&nbsp;<strong>OK<\/strong>&nbsp;to create your keystore.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If you choose to use an existing keystore, simply select it.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1536\" height=\"768\" src=\"https:\/\/documentation.iqonic.design\/kivilab-laravel\/wp-content\/uploads\/sites\/6\/2025\/02\/android_5.png\" alt=\"\" class=\"wp-image-322\" \/><\/figure>\n\n\n\n<p>After selecting your keystore or creating a new one, click&nbsp;<strong>Next<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1536\" height=\"768\" src=\"https:\/\/documentation.iqonic.design\/kivilab-laravel\/wp-content\/uploads\/sites\/6\/2025\/02\/android_6.png\" alt=\"\" class=\"wp-image-323\" \/><\/figure>\n\n\n\n<p>Choose the release mode and proceed with building the APK.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1536\" height=\"768\" src=\"https:\/\/documentation.iqonic.design\/kivilab-laravel\/wp-content\/uploads\/sites\/6\/2025\/02\/android_7.png\" alt=\"\" class=\"wp-image-324\" \/><\/figure>\n\n\n\n<p><strong>NOTE:<\/strong><br><em>If you intend to publish your app on the Google Play Store, you will need the AAB (Android App Bundle) format. To create an AAB, follow the same steps mentioned above, but in step 2, select the AAB option instead of APK.<\/em><\/p>\n\n\n\n<p><strong>SUCCESSFUL !!<\/strong><\/p>\n\n\n\n<p><strong>Great! You have successfully configured the Android module!<\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Change Google Map Key <\/strong><\/h3>\n\n\n\n<p>In the main directory, go to&nbsp;<strong>android\/app\/src\/main\/AndroidManifest.xml<\/strong><\/p>\n\n\n\n<p>Change the existing key<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;meta-data<br>    android:name=\"com.google.android.geo.API_KEY\"<br>    android:value=\"YOUR_MAP_KEY\" \/&gt;<\/pre>\n\n\n\n<p><\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Estimated reading: 3 minutes Setting up Android for your KiviLabs Project Open Android Module The Android module can be accessed in&nbsp;Two ways: 1. Select the&nbsp;Android Module&nbsp;from the same project you&#8217;re attempting to open by going to&nbsp;File -&gt; Open. 2. Navigate to&nbsp;Tools -&gt; Flutter -&gt; Android Studio -&gt; Open Android Module. Change The Application Id IMPORTANT [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":0,"parent":163,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-169","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\/169","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=169"}],"version-history":[{"count":29,"href":"https:\/\/documentation.iqonic.design\/kivilab-laravel\/wp-json\/wp\/v2\/posts\/169\/revisions"}],"predecessor-version":[{"id":917,"href":"https:\/\/documentation.iqonic.design\/kivilab-laravel\/wp-json\/wp\/v2\/posts\/169\/revisions\/917"}],"up":[{"embeddable":true,"href":"https:\/\/documentation.iqonic.design\/kivilab-laravel\/wp-json\/wp\/v2\/posts\/163"}],"wp:attachment":[{"href":"https:\/\/documentation.iqonic.design\/kivilab-laravel\/wp-json\/wp\/v2\/media?parent=169"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/documentation.iqonic.design\/kivilab-laravel\/wp-json\/wp\/v2\/categories?post=169"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/documentation.iqonic.design\/kivilab-laravel\/wp-json\/wp\/v2\/tags?post=169"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}