[{"data":1,"prerenderedAt":231},["ShallowReactive",2],{"public-settings":3,"footer-custom-pages":18,"post-android-sign-apk-from-gradle":31,"article-code-10xg5d4":230},{"site_title":4,"tagline":5,"site_url":6,"footer_text":5,"social_twitter":7,"social_github":7,"social_youtube":7,"social_linkedin":7,"social_mastodon":7,"og_image":8,"comments_enabled":9,"ads_mode":10,"ads_publisher_id":11,"ads_adtest":12,"ads_in_article_enabled":9,"ads_in_article_slot":13,"ads_in_article_paragraph":14,"ads_end_of_post_enabled":9,"ads_end_of_post_slot":13,"ads_feed_enabled":9,"ads_feed_slot":13,"ads_feed_every":15,"ads_sidebar_enabled":9,"ads_sidebar_slot":13,"ads_consent_enabled":9,"clarity_enabled":9,"clarity_project_id":16,"seo_enabled":9,"llms_enabled":9,"verification_google":7,"verification_bing":7,"seo_home_title":7,"seo_description":7,"indexnow_key":7,"performance_lcp_preload":9,"pwa_enabled":9,"bookmarks_enabled":9,"comments_moderation":9,"home_carousel_featured":9,"home_carousel_latest":9,"home_carousel_latest_mode":17,"home_carousel_series":9,"home_carousel_topics":9},"Android Learner","Practical Android development, explained clearly.","https:\u002F\u002Fwww.androidlearner.com","","\u002Fmedia\u002Fseed\u002Fcover-llm.webp","1","live","ca-pub-3394535770235553","0","9901451769","2","3","jmrmm96ef6","latest",[19,26],{"id":20,"title":21,"slug":22,"show_in_footer":23,"sort_order":24,"updated_at":25},1,"Terms & Conditions","terms",true,10,"2026-11-28 13:13:48",{"id":27,"title":28,"slug":29,"show_in_footer":23,"sort_order":30,"updated_at":25},2,"Privacy Policy","privacy",20,{"post":32,"comments":229},{"id":33,"title":34,"slug":35,"path":36,"excerpt":37,"cover_image":38,"cover_media_id":38,"status":39,"publish_at":40,"reading_time":41,"seo_title":34,"seo_description":37,"og_image":38,"canonical_url":42,"noindex":43,"featured":43,"faq":44,"howto":38,"review_note":38,"submitted_at":38,"reviewed_at":38,"category":45,"series":38,"tags":49,"author":50,"created_at":40,"updated_at":53,"body_md":54,"body_html":55,"related":56},8,"Android sign apk from gradle","android-sign-apk-from-gradle","\u002F2020\u002F07\u002Fandroid-sign-apk-from-gradle.html","Android requires that all apps be digitally signed with a certificate before they can be installed. In order to distribute your Android application via Google Play store it needs to be signed with a release key that then needs to be used for all future updates. Since 2017 it is possible for...",null,"published","2020-07-31 07:10:00",6,"https:\u002F\u002Fwww.androidlearner.com\u002F2020\u002F07\u002Fandroid-sign-apk-from-gradle.html",false,[],{"id":41,"name":46,"slug":47,"description":48},"Android Development","android-development","Tutorials and guides imported from the original Android Learner blog.",[],{"id":20,"name":4,"username":51,"avatar":38,"profile_path":52},"superadmin","\u002Fu\u002Fsuperadmin","2020-07-31 07:10:43","Android requires that all apps be digitally signed with a certificate before they can be installed. In order to distribute your Android application via [Google Play store](https:\u002F\u002Fplay.google.com\u002Fstore) it needs to be signed with a release key that then needs to be used for all future updates. Since 2017 it is possible for Google Play to manage signing releases automatically thanks to [App Signing by Google Play](https:\u002F\u002Fdeveloper.android.com\u002Fstudio\u002Fpublish\u002Fapp-signing#app-signing-google-play) functionality. However, before your application binary is uploaded to Google Play it needs to be signed with an upload key. The [Signing Your Applications](https:\u002F\u002Fdeveloper.android.com\u002Ftools\u002Fpublishing\u002Fapp-signing.html) page on Android Developers documentation describes the topic in detail. This guide covers the process in brief, as well as lists the steps required to package the JavaScript bundle.\n\n### Generating an upload key\n\nYou can generate a private signing key using `keytool`. On Windows `keytool` must be run from `C:\\Program Files\\Java\\jdkx.x.x_x\\bin`.\n\n```bash\n$ keytool -genkeypair -v -keystore my-upload-key.keystore -alias my-key-alias -keyalg RSA -keysize 2048 -validity 10000\n```\n\nThis command prompts you for passwords for the keystore and key and for the Distinguished Name fields for your key. It then generates the keystore as a file called `my-upload-key.keystore`.\n\nThe keystore contains a single key, valid for 10000 days. The alias is a name that you will use later when signing your app, so remember to take note of the alias.\n\nOn Mac, if you’re not sure where your JDK bin folder is, then perform the following command to find it:\n\n```bash\n$ \u002Fusr\u002Flibexec\u002Fjava_home\n```\n\nIt will output the directory of the JDK, which will look something like this:\n\n```text\n\u002FLibrary\u002FJava\u002FJavaVirtualMachines\u002FjdkX.X.X_XXX.jdk\u002FContents\u002FHome\n```\n\nNavigate to that directory by using the command `$ cd \u002Fyour\u002Fjdk\u002Fpath` and use the keytool command with sudo permission as shown below.\n\n```bash\n$ sudo keytool -genkey -v -keystore my-upload-key.keystore -alias my-key-alias -keyalg RSA -keysize 2048 -validity 10000\n```\n\n*Note: Remember to keep the keystore file private. In case you’ve lost upload key or it’s been compromised you should [follow these instructions](https:\u002F\u002Fsupport.google.com\u002Fgoogleplay\u002Fandroid-developer\u002Fanswer\u002F7384423#reset).*\n\n### Setting up Gradle variables\n\n1. Place the `my-upload-key.keystore` file under the `android\u002Fapp` directory in your project folder.\n2. Edit the file `~\u002F.gradle\u002Fgradle.properties` or `android\u002Fgradle.properties`, and add the following (replace `*****` with the correct keystore password, alias and key password),\n\n```text\nMYAPP_UPLOAD_STORE_FILE=my-upload-key.keystore\nMYAPP_UPLOAD_KEY_ALIAS=my-key-alias\nMYAPP_UPLOAD_STORE_PASSWORD=*****\nMYAPP_UPLOAD_KEY_PASSWORD=*****\n```\n\nThese are going to be global Gradle variables, which we can later use in our Gradle config to sign our app.\n\n*Note about security: If you are not keen on storing your passwords in plaintext, and you are running OSX, you can also [store your credentials in the Keychain Access app](https:\u002F\u002Fpilloxa.gitlab.io\u002Fposts\u002Fsafer-passwords-in-gradle\u002F). Then you can skip the two last rows in `~\u002F.gradle\u002Fgradle.properties`.*\n\n### Adding signing config to your app’s Gradle config\n\nThe last configuration step that needs to be done is to setup release builds to be signed using upload key. Edit the file `android\u002Fapp\u002Fbuild.gradle` in your project folder, and add the signing config,\n\n```groovy\n...\nandroid {\n    ...\n    defaultConfig { ... }\n    signingConfigs {\n        release {\n            if (project.hasProperty('MYAPP_UPLOAD_STORE_FILE')) {\n                storeFile file(MYAPP_UPLOAD_STORE_FILE)\n                storePassword MYAPP_UPLOAD_STORE_PASSWORD\n                keyAlias MYAPP_UPLOAD_KEY_ALIAS\n                keyPassword MYAPP_UPLOAD_KEY_PASSWORD\n            }\n        }\n    }\n    buildTypes {\n        release {\n            ...\n            signingConfig signingConfigs.release\n        }\n    }\n}\n...\n```\n\n### Generating the release APK\n\nRun the following in a terminal:\n\n```bash\n$ cd android\n$ .\u002Fgradlew bundleRelease\n```\n\nGradle’s `bundleRelease` will bundle all the JavaScript needed to run your app into the AAB ([Android App Bundle](https:\u002F\u002Fdeveloper.android.com\u002Fguide\u002Fapp-bundle)). If you need to change the way the JavaScript bundle and\u002For drawable resources are bundled (e.g. if you changed the default file\u002Ffolder names or the general structure of the project), have a look at `android\u002Fapp\u002Fbuild.gradle` to see how you can update it to reflect these changes.\n\n> Note: Make sure gradle.properties does not include *org.gradle.configureondemand=true* as that will make the release build skip bundling JS and assets into the app binary.\n\nThe generated AAB can be found under `android\u002Fapp\u002Fbuild\u002Foutputs\u002Fbundle\u002Frelease\u002Fapp.aab`, and is ready to be uploaded to Google Play.\n\n*Note: In order for Google Play to accept AAB format the App Signing by Google Play needs to be configured for your application on the Google Play Console. If you are updating an existing app that doesn’t use App Signing by Google Play, please check our [migration section](#migrating-old-android-react-native-apps-to-use-app-signing-by-google-play) to learn how to perform that configuration change.*\n\n### Testing the release build of your app\n\nBefore uploading the release build to the Play Store, make sure you test it thoroughly. First uninstall any previous version of the app you already have installed. Install it on the device using the following command in the project root:\n\n```bash\n$ npx react-native run-android --variant=release\n```\n\nNote that `--variant=release` is only available if you’ve set up signing as described above.\n\nYou can terminate any running bundler instances, since all your framework and JavaScript code is bundled in the APK’s assets.\n\n### Publishing to other stores\n\nBy default, the generated APK has the native code for both x86 and ARMv7a CPU architectures. This makes it easier to share APKs that run on almost all Android devices. However, this has the downside that there will be some unused native code on any device, leading to unnecessarily bigger APKs.\n\nYou can create an APK for each CPU by changing the following line in android\u002Fapp\u002Fbuild.gradle:\n\n```text\n- ndk {\n-   abiFilters \"armeabi-v7a\", \"x86\"\n- }\n- def enableSeparateBuildPerCPUArchitecture = false\n+ def enableSeparateBuildPerCPUArchitecture = true\n```\n\nUpload both these files to markets which support device targeting, such as [Google Play](https:\u002F\u002Fdeveloper.android.com\u002Fgoogle\u002Fplay\u002Fpublishing\u002Fmultiple-apks.html) and [Amazon AppStore](https:\u002F\u002Fdeveloper.amazon.com\u002Fdocs\u002Fapp-submission\u002Fdevice-filtering-and-compatibility.html), and the users will automatically get the appropriate APK. If you want to upload to other markets, such as [APKFiles](https:\u002F\u002Fwww.apkfiles.com\u002F), which do not support multiple APKs for a single app, change the following line as well to create the default universal APK with binaries for both CPUs.\n\n```text\n- universalApk false  \u002F\u002F If true, also generate a universal APK\n+ universalApk true  \u002F\u002F If true, also generate a universal APK\n```\n\n### Enabling Proguard to reduce the size of the APK (optional)\n\nProguard is a tool that can slightly reduce the size of the APK. It does this by stripping parts of the React Native Java bytecode (and its dependencies) that your app is not using.\n\n***IMPORTANT**: Make sure to thoroughly test your app if you’ve enabled Proguard. Proguard often requires configuration specific to each native library you’re using. See `app\u002Fproguard-rules.pro`.*\n\nTo enable Proguard, edit `android\u002Fapp\u002Fbuild.gradle`:\n\n```text\n\u002F**\n * Run Proguard to shrink the Java bytecode in release builds.\n *\u002F\ndef enableProguardInReleaseBuilds = true\n```\n\n### Migrating old Android React Native apps to use App Signing by Google Play\n\nIf you are migrating from previous version of React Native chances are your app does not use App Signing by Google Play feature. We recommend you enable that in order to take advantage from things like automatic app splitting. In order to migrate from the old way of signing you need to start by [generating new upload key](#generating-an-upload-key) and then replacing release signing config in `android\u002Fapp\u002Fbuild.gradle` to use the upload key instead of the release one (see section about [adding signing config to gradle](#adding-signing-config-to-your-app-s-gradle-config)). Once that’s done you should follow the [instructions from Google Play Help website](https:\u002F\u002Fsupport.google.com\u002Fgoogleplay\u002Fandroid-developer\u002Fanswer\u002F7384423) in order to send your original release key to Google Play.\n\n> Since this was helpful for me I have archived it. The Steps applies to native app as well.\n","\u003Cp>Android requires that all apps be digitally signed with a certificate before they can be installed. In order to distribute your Android application via \u003Ca href=\"https:\u002F\u002Fplay.google.com\u002Fstore\">Google Play store\u003C\u002Fa> it needs to be signed with a release key that then needs to be used for all future updates. Since 2017 it is possible for Google Play to manage signing releases automatically thanks to \u003Ca href=\"https:\u002F\u002Fdeveloper.android.com\u002Fstudio\u002Fpublish\u002Fapp-signing#app-signing-google-play\">App Signing by Google Play\u003C\u002Fa> functionality. However, before your application binary is uploaded to Google Play it needs to be signed with an upload key. The \u003Ca href=\"https:\u002F\u002Fdeveloper.android.com\u002Ftools\u002Fpublishing\u002Fapp-signing.html\">Signing Your Applications\u003C\u002Fa> page on Android Developers documentation describes the topic in detail. This guide covers the process in brief, as well as lists the steps required to package the JavaScript bundle.\u003C\u002Fp>\n\u003Ch3 id=\"generating-an-upload-key\">Generating an upload key\u003C\u002Fh3>\n\u003Cp>You can generate a private signing key using \u003Ccode>keytool\u003C\u002Fcode>. On Windows \u003Ccode>keytool\u003C\u002Fcode> must be run from \u003Ccode>C:\\Program Files\\Java\\jdkx.x.x_x\\bin\u003C\u002Fcode>.\u003C\u002Fp>\n\u003Cpre class=\"code-block\" data-lang=\"bash\">\u003Ccode class=\"language-bash\">$ keytool -genkeypair -v -keystore my-upload-key.keystore -alias my-key-alias -keyalg RSA -keysize 2048 -validity 10000\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>This command prompts you for passwords for the keystore and key and for the Distinguished Name fields for your key. It then generates the keystore as a file called \u003Ccode>my-upload-key.keystore\u003C\u002Fcode>.\u003C\u002Fp>\n\u003Cp>The keystore contains a single key, valid for 10000 days. The alias is a name that you will use later when signing your app, so remember to take note of the alias.\u003C\u002Fp>\n\u003Cp>On Mac, if you’re not sure where your JDK bin folder is, then perform the following command to find it:\u003C\u002Fp>\n\u003Cpre class=\"code-block\" data-lang=\"bash\">\u003Ccode class=\"language-bash\">$ \u002Fusr\u002Flibexec\u002Fjava_home\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>It will output the directory of the JDK, which will look something like this:\u003C\u002Fp>\n\u003Cpre class=\"code-block\" data-lang=\"text\">\u003Ccode class=\"language-text\">\u002FLibrary\u002FJava\u002FJavaVirtualMachines\u002FjdkX.X.X_XXX.jdk\u002FContents\u002FHome\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>Navigate to that directory by using the command \u003Ccode>$ cd \u002Fyour\u002Fjdk\u002Fpath\u003C\u002Fcode> and use the keytool command with sudo permission as shown below.\u003C\u002Fp>\n\u003Cpre class=\"code-block\" data-lang=\"bash\">\u003Ccode class=\"language-bash\">$ sudo keytool -genkey -v -keystore my-upload-key.keystore -alias my-key-alias -keyalg RSA -keysize 2048 -validity 10000\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>\u003Cem>Note: Remember to keep the keystore file private. In case you’ve lost upload key or it’s been compromised you should \u003Ca href=\"https:\u002F\u002Fsupport.google.com\u002Fgoogleplay\u002Fandroid-developer\u002Fanswer\u002F7384423#reset\">follow these instructions\u003C\u002Fa>.\u003C\u002Fem>\u003C\u002Fp>\n\u003Ch3 id=\"setting-up-gradle-variables\">Setting up Gradle variables\u003C\u002Fh3>\n\u003Col>\n\u003Cli>Place the \u003Ccode>my-upload-key.keystore\u003C\u002Fcode> file under the \u003Ccode>android\u002Fapp\u003C\u002Fcode> directory in your project folder.\u003C\u002Fli>\n\u003Cli>Edit the file \u003Ccode>~\u002F.gradle\u002Fgradle.properties\u003C\u002Fcode> or \u003Ccode>android\u002Fgradle.properties\u003C\u002Fcode>, and add the following (replace \u003Ccode>*****\u003C\u002Fcode> with the correct keystore password, alias and key password),\u003C\u002Fli>\n\u003C\u002Fol>\n\u003Cpre class=\"code-block\" data-lang=\"text\">\u003Ccode class=\"language-text\">MYAPP_UPLOAD_STORE_FILE=my-upload-key.keystore\nMYAPP_UPLOAD_KEY_ALIAS=my-key-alias\nMYAPP_UPLOAD_STORE_PASSWORD=*****\nMYAPP_UPLOAD_KEY_PASSWORD=*****\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>These are going to be global Gradle variables, which we can later use in our Gradle config to sign our app.\u003C\u002Fp>\n\u003Cp>\u003Cem>Note about security: If you are not keen on storing your passwords in plaintext, and you are running OSX, you can also \u003Ca href=\"https:\u002F\u002Fpilloxa.gitlab.io\u002Fposts\u002Fsafer-passwords-in-gradle\u002F\">store your credentials in the Keychain Access app\u003C\u002Fa>. Then you can skip the two last rows in \u003Ccode>~\u002F.gradle\u002Fgradle.properties\u003C\u002Fcode>.\u003C\u002Fem>\u003C\u002Fp>\n\u003Ch3 id=\"adding-signing-config-to-your-app-s-gradle-config\">Adding signing config to your app’s Gradle config\u003C\u002Fh3>\n\u003Cp>The last configuration step that needs to be done is to setup release builds to be signed using upload key. Edit the file \u003Ccode>android\u002Fapp\u002Fbuild.gradle\u003C\u002Fcode> in your project folder, and add the signing config,\u003C\u002Fp>\n\u003Cpre class=\"code-block\" data-lang=\"groovy\">\u003Ccode class=\"language-groovy\">...\nandroid {\n    ...\n    defaultConfig { ... }\n    signingConfigs {\n        release {\n            if (project.hasProperty('MYAPP_UPLOAD_STORE_FILE')) {\n                storeFile file(MYAPP_UPLOAD_STORE_FILE)\n                storePassword MYAPP_UPLOAD_STORE_PASSWORD\n                keyAlias MYAPP_UPLOAD_KEY_ALIAS\n                keyPassword MYAPP_UPLOAD_KEY_PASSWORD\n            }\n        }\n    }\n    buildTypes {\n        release {\n            ...\n            signingConfig signingConfigs.release\n        }\n    }\n}\n...\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Ch3 id=\"generating-the-release-apk\">Generating the release APK\u003C\u002Fh3>\n\u003Cp>Run the following in a terminal:\u003C\u002Fp>\n\u003Cpre class=\"code-block\" data-lang=\"bash\">\u003Ccode class=\"language-bash\">$ cd android\n$ .\u002Fgradlew bundleRelease\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>Gradle’s \u003Ccode>bundleRelease\u003C\u002Fcode> will bundle all the JavaScript needed to run your app into the AAB (\u003Ca href=\"https:\u002F\u002Fdeveloper.android.com\u002Fguide\u002Fapp-bundle\">Android App Bundle\u003C\u002Fa>). If you need to change the way the JavaScript bundle and\u002For drawable resources are bundled (e.g. if you changed the default file\u002Ffolder names or the general structure of the project), have a look at \u003Ccode>android\u002Fapp\u002Fbuild.gradle\u003C\u002Fcode> to see how you can update it to reflect these changes.\u003C\u002Fp>\n\u003Cblockquote>\n\u003Cp>Note: Make sure gradle.properties does not include \u003Cem>org.gradle.configureondemand=true\u003C\u002Fem> as that will make the release build skip bundling JS and assets into the app binary.\u003C\u002Fp>\n\u003C\u002Fblockquote>\n\u003Cp>The generated AAB can be found under \u003Ccode>android\u002Fapp\u002Fbuild\u002Foutputs\u002Fbundle\u002Frelease\u002Fapp.aab\u003C\u002Fcode>, and is ready to be uploaded to Google Play.\u003C\u002Fp>\n\u003Cp>\u003Cem>Note: In order for Google Play to accept AAB format the App Signing by Google Play needs to be configured for your application on the Google Play Console. If you are updating an existing app that doesn’t use App Signing by Google Play, please check our \u003Ca href=\"#migrating-old-android-react-native-apps-to-use-app-signing-by-google-play\">migration section\u003C\u002Fa> to learn how to perform that configuration change.\u003C\u002Fem>\u003C\u002Fp>\n\u003Ch3 id=\"testing-the-release-build-of-your-app\">Testing the release build of your app\u003C\u002Fh3>\n\u003Cp>Before uploading the release build to the Play Store, make sure you test it thoroughly. First uninstall any previous version of the app you already have installed. Install it on the device using the following command in the project root:\u003C\u002Fp>\n\u003Cpre class=\"code-block\" data-lang=\"bash\">\u003Ccode class=\"language-bash\">$ npx react-native run-android --variant=release\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>Note that \u003Ccode>--variant=release\u003C\u002Fcode> is only available if you’ve set up signing as described above.\u003C\u002Fp>\n\u003Cp>You can terminate any running bundler instances, since all your framework and JavaScript code is bundled in the APK’s assets.\u003C\u002Fp>\n\u003Ch3 id=\"publishing-to-other-stores\">Publishing to other stores\u003C\u002Fh3>\n\u003Cp>By default, the generated APK has the native code for both x86 and ARMv7a CPU architectures. This makes it easier to share APKs that run on almost all Android devices. However, this has the downside that there will be some unused native code on any device, leading to unnecessarily bigger APKs.\u003C\u002Fp>\n\u003Cp>You can create an APK for each CPU by changing the following line in android\u002Fapp\u002Fbuild.gradle:\u003C\u002Fp>\n\u003Cpre class=\"code-block\" data-lang=\"text\">\u003Ccode class=\"language-text\">- ndk {\n-   abiFilters &quot;armeabi-v7a&quot;, &quot;x86&quot;\n- }\n- def enableSeparateBuildPerCPUArchitecture = false\n+ def enableSeparateBuildPerCPUArchitecture = true\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>Upload both these files to markets which support device targeting, such as \u003Ca href=\"https:\u002F\u002Fdeveloper.android.com\u002Fgoogle\u002Fplay\u002Fpublishing\u002Fmultiple-apks.html\">Google Play\u003C\u002Fa> and \u003Ca href=\"https:\u002F\u002Fdeveloper.amazon.com\u002Fdocs\u002Fapp-submission\u002Fdevice-filtering-and-compatibility.html\">Amazon AppStore\u003C\u002Fa>, and the users will automatically get the appropriate APK. If you want to upload to other markets, such as \u003Ca href=\"https:\u002F\u002Fwww.apkfiles.com\u002F\">APKFiles\u003C\u002Fa>, which do not support multiple APKs for a single app, change the following line as well to create the default universal APK with binaries for both CPUs.\u003C\u002Fp>\n\u003Cpre class=\"code-block\" data-lang=\"text\">\u003Ccode class=\"language-text\">- universalApk false  \u002F\u002F If true, also generate a universal APK\n+ universalApk true  \u002F\u002F If true, also generate a universal APK\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Ch3 id=\"enabling-proguard-to-reduce-the-size-of-the-apk-optional\">Enabling Proguard to reduce the size of the APK (optional)\u003C\u002Fh3>\n\u003Cp>Proguard is a tool that can slightly reduce the size of the APK. It does this by stripping parts of the React Native Java bytecode (and its dependencies) that your app is not using.\u003C\u002Fp>\n\u003Cp>\u003Cem>\u003Cstrong>IMPORTANT\u003C\u002Fstrong>: Make sure to thoroughly test your app if you’ve enabled Proguard. Proguard often requires configuration specific to each native library you’re using. See \u003Ccode>app\u002Fproguard-rules.pro\u003C\u002Fcode>.\u003C\u002Fem>\u003C\u002Fp>\n\u003Cp>To enable Proguard, edit \u003Ccode>android\u002Fapp\u002Fbuild.gradle\u003C\u002Fcode>:\u003C\u002Fp>\n\u003Cpre class=\"code-block\" data-lang=\"text\">\u003Ccode class=\"language-text\">\u002F**\n * Run Proguard to shrink the Java bytecode in release builds.\n *\u002F\ndef enableProguardInReleaseBuilds = true\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Ch3 id=\"migrating-old-android-react-native-apps-to-use-app-signing-by-google-play\">Migrating old Android React Native apps to use App Signing by Google Play\u003C\u002Fh3>\n\u003Cp>If you are migrating from previous version of React Native chances are your app does not use App Signing by Google Play feature. We recommend you enable that in order to take advantage from things like automatic app splitting. In order to migrate from the old way of signing you need to start by \u003Ca href=\"#generating-an-upload-key\">generating new upload key\u003C\u002Fa> and then replacing release signing config in \u003Ccode>android\u002Fapp\u002Fbuild.gradle\u003C\u002Fcode> to use the upload key instead of the release one (see section about \u003Ca href=\"#adding-signing-config-to-your-app-s-gradle-config\">adding signing config to gradle\u003C\u002Fa>). Once that’s done you should follow the \u003Ca href=\"https:\u002F\u002Fsupport.google.com\u002Fgoogleplay\u002Fandroid-developer\u002Fanswer\u002F7384423\">instructions from Google Play Help website\u003C\u002Fa> in order to send your original release key to Google Play.\u003C\u002Fp>\n\u003Cblockquote>\n\u003Cp>Since this was helpful for me I have archived it. The Steps applies to native app as well.\u003C\u002Fp>\n\u003C\u002Fblockquote>\n",[57,114,147,179],{"id":58,"title":59,"slug":60,"path":61,"excerpt":62,"cover_image":63,"cover_media_id":64,"status":39,"publish_at":65,"reading_time":27,"seo_title":66,"seo_description":67,"og_image":63,"canonical_url":68,"noindex":43,"featured":23,"faq":69,"howto":79,"review_note":38,"submitted_at":38,"reviewed_at":38,"category":91,"series":38,"tags":92,"author":113,"created_at":65,"updated_at":65},29,"November 2026 Pixel Feature Drop & Android 17 QPR2: Rambler, Pixel Tag & Create My Widget","november-2026-pixel-feature-drop-android-17-qpr2-pixel-tag","\u002Fposts\u002Fnovember-2026-pixel-feature-drop-android-17-qpr2-pixel-tag","Google's November 2026 Pixel Feature Drop (Android 17 QPR2) brings Rambler filler-free voice typing, AI-generated home screen widgets, custom icon styles, and the official Pixel Tag launch.","\u002Fmedia\u002F2026\u002F11\u002F6011ffd2d0752034.webp",71,"2026-11-30 07:19:48","Nov 2026 Pixel Feature Drop: Android 17 QPR2 & Pixel Tag","Everything in the November 2026 Pixel Feature Drop and Android 17 QPR2: Rambler AI voice cleanup, Create My Widget, Pixel Tag tracker, and eligible Pixel models.","https:\u002F\u002Fwww.androidlearner.com\u002Fposts\u002Fnovember-2026-pixel-feature-drop-android-17-qpr2-pixel-tag\u002F",[70,73,76],{"question":71,"answer":72},"Which Pixel phones get the November 2026 Pixel Feature Drop?","The Android 17 QPR2 update rolls out across supported Pixel devices starting from the Pixel 6a up through the Pixel 10 and Pixel 11 series, though newer Gemini Intelligence features like Rambler target Pixel 10 and Pixel 11 hardware.",{"question":74,"answer":75},"What is Rambler in the November 2026 Pixel Drop?","Rambler is a Gemini-powered voice typing and message-polishing feature that removes filler words like 'um' and formats messy spoken thoughts into clean, multi-language text.",{"question":77,"answer":78},"What does Google Pixel Tag do?","Pixel Tag is Google's official item tracker launched alongside the November 2026 drop, integrating directly with Android's Find My Device network.",{"name":80,"steps":81},"How to Update Your Pixel to Android 17 QPR2 (November 2026)",[82,85,88],{"name":83,"text":84},"Open System Settings","Go to Settings > System > Software updates > System update on your Pixel device.",{"name":86,"text":87},"Install the November 2026 build","Download and restart to apply Android 17 QPR2 and the 2026-11-05 security patch level.",{"name":89,"text":90},"Enable new Gemini & home screen tools","Check Gboard settings for Rambler voice cleanup and long-press the home screen to try Create My Widget and custom icon styles.",{"id":41,"name":46,"slug":47,"description":48},[93,97,101,105,109],{"id":94,"name":95,"slug":96,"description":38},28,"Android","android",{"id":98,"name":99,"slug":100,"description":38},35,"Android 17","android-17",{"id":102,"name":103,"slug":104,"description":38},54,"Gemini","gemini",{"id":106,"name":107,"slug":108,"description":38},55,"Pixel","pixel",{"id":110,"name":111,"slug":112,"description":38},56,"Pixel Feature Drop","pixel-feature-drop",{"id":20,"name":4,"username":51,"avatar":38,"profile_path":52},{"id":115,"title":116,"slug":117,"path":118,"excerpt":119,"cover_image":120,"cover_media_id":121,"status":39,"publish_at":122,"reading_time":123,"seo_title":124,"seo_description":125,"og_image":120,"canonical_url":126,"noindex":43,"featured":43,"faq":127,"howto":38,"review_note":38,"submitted_at":38,"reviewed_at":38,"category":128,"series":38,"tags":129,"author":145,"created_at":146,"updated_at":146},18,"Can You Play GTA 6 on Android? Official Platforms, Remote Play, and Fake APKs","can-you-play-gta-6-on-android","\u002Fposts\u002Fcan-you-play-gta-6-on-android","As of 24 November 2026, GTA 6 is not a native Android game. Here is what Rockstar actually released, how official Remote Play works, and how to spot unofficial APK offers.","\u002Fmedia\u002F2026\u002F11\u002F7e0bf4b732de8bdb.webp",44,"2026-11-24 06:00:00",11,"Can You Play GTA 6 on Android? Official Facts (Nov 2026)","GTA 6 launched 19 Nov 2026 on PS5 and Xbox Series X|S only. This guide covers official Remote Play, what cloud posts actually say, and how to avoid unofficial APK downloads.","https:\u002F\u002Fwww.androidlearner.com\u002Fposts\u002Fcan-you-play-gta-6-on-android\u002F",[],{"id":41,"name":46,"slug":47,"description":48},[130,131,134,138,142],{"id":94,"name":95,"slug":96,"description":38},{"id":132,"name":133,"slug":133,"description":38},40,"gaming",{"id":135,"name":136,"slug":137,"description":38},41,"GTA 6","gta-6",{"id":139,"name":140,"slug":141,"description":38},42,"Remote Play","remote-play",{"id":143,"name":144,"slug":144,"description":38},43,"security",{"id":20,"name":4,"username":51,"avatar":38,"profile_path":52},"2026-11-24 06:24:53",{"id":41,"title":148,"slug":149,"path":150,"excerpt":151,"cover_image":38,"cover_media_id":38,"status":39,"publish_at":152,"reading_time":41,"seo_title":148,"seo_description":151,"og_image":38,"canonical_url":153,"noindex":43,"featured":43,"faq":154,"howto":38,"review_note":38,"submitted_at":38,"reviewed_at":38,"category":155,"series":38,"tags":156,"author":178,"created_at":152,"updated_at":152},"12 Free Tools Every Android Developer Should Know (2026)","free-android-developer-tools","\u002F2026\u002F10\u002Ffree-android-developer-tools.html","The best free tools for Android developers in 2026: Android Studio, scrcpy, LeakCanary, Perfetto, Maestro, GitHub Actions and more.","2026-10-29 09:07:39","https:\u002F\u002Fwww.androidlearner.com\u002F2026\u002F10\u002Ffree-android-developer-tools.html",[],{"id":41,"name":46,"slug":47,"description":48},[157,159,163,167,171,175],{"id":158,"name":46,"slug":47,"description":38},13,{"id":160,"name":161,"slug":162,"description":38},14,"Android Studio","android-studio",{"id":164,"name":165,"slug":166,"description":38},15,"Android Testing","android-testing",{"id":168,"name":169,"slug":170,"description":38},16,"Developer Tools","developer-tools",{"id":172,"name":173,"slug":174,"description":38},17,"Free Tools","free-tools",{"id":115,"name":176,"slug":177,"description":38},"Jetpack Compose","jetpack-compose",{"id":20,"name":4,"username":51,"avatar":38,"profile_path":52},{"id":180,"title":181,"slug":182,"path":183,"excerpt":184,"cover_image":38,"cover_media_id":38,"status":39,"publish_at":185,"reading_time":41,"seo_title":181,"seo_description":184,"og_image":38,"canonical_url":186,"noindex":43,"featured":43,"faq":187,"howto":38,"review_note":38,"submitted_at":38,"reviewed_at":38,"category":188,"series":38,"tags":189,"author":227,"created_at":185,"updated_at":228},7,"Latest Android Development Tools in 2025: A Complete Guide for Modern Developers","latest-android-development-tools-in","\u002F2025\u002F09\u002Flatest-android-development-tools-in.html","Android development in 2025 has reached new heights with revolutionary tools and frameworks that combine artificial intelligence, cross-platform capabilities, and enhanced developer productivity. Whether you're a seasoned developer or just starting your Android journey, understanding these...","2025-09-07 05:52:00","https:\u002F\u002Fwww.androidlearner.com\u002F2025\u002F09\u002Flatest-android-development-tools-in.html",[],{"id":41,"name":46,"slug":47,"description":48},[190,194,197,198,199,203,207,211,215,219,223],{"id":191,"name":192,"slug":193,"description":38},19,"2025 Technology","2025-technology",{"id":30,"name":195,"slug":196,"description":38},"AI Development","ai-development",{"id":158,"name":46,"slug":47,"description":38},{"id":160,"name":161,"slug":162,"description":38},{"id":200,"name":201,"slug":202,"description":38},21,"Capacitor","capacitor",{"id":204,"name":205,"slug":206,"description":38},22,"Cross-Platform","cross-platform",{"id":208,"name":209,"slug":210,"description":38},23,"Flutter","flutter",{"id":212,"name":213,"slug":214,"description":38},24,"Jetpack","jetpack",{"id":216,"name":217,"slug":218,"description":38},25,"MAUI","maui",{"id":220,"name":221,"slug":222,"description":38},26,"Mobile Development","mobile-development",{"id":224,"name":225,"slug":226,"description":38},27,"React Native","react-native",{"id":20,"name":4,"username":51,"avatar":38,"profile_path":52},"2025-09-07 06:03:35",[],"\u003Cp>Android requires that all apps be digitally signed with a certificate before they can be installed. In order to distribute your Android application via \u003Ca href=\"https:\u002F\u002Fplay.google.com\u002Fstore\">Google Play store\u003C\u002Fa> it needs to be signed with a release key that then needs to be used for all future updates. Since 2017 it is possible for Google Play to manage signing releases automatically thanks to \u003Ca href=\"https:\u002F\u002Fdeveloper.android.com\u002Fstudio\u002Fpublish\u002Fapp-signing#app-signing-google-play\">App Signing by Google Play\u003C\u002Fa> functionality. However, before your application binary is uploaded to Google Play it needs to be signed with an upload key. The \u003Ca href=\"https:\u002F\u002Fdeveloper.android.com\u002Ftools\u002Fpublishing\u002Fapp-signing.html\">Signing Your Applications\u003C\u002Fa> page on Android Developers documentation describes the topic in detail. This guide covers the process in brief, as well as lists the steps required to package the JavaScript bundle.\u003C\u002Fp>\n\u003Ch3 id=\"generating-an-upload-key\">Generating an upload key\u003C\u002Fh3>\n\u003Cp>You can generate a private signing key using \u003Ccode>keytool\u003C\u002Fcode>. On Windows \u003Ccode>keytool\u003C\u002Fcode> must be run from \u003Ccode>C:\\Program Files\\Java\\jdkx.x.x_x\\bin\u003C\u002Fcode>.\u003C\u002Fp>\n\u003Cdiv class=\"code-block\" data-lang=\"bash\">\u003Cdiv class=\"code-block__header\">\u003Cspan class=\"code-block__lang\">bash\u003C\u002Fspan>\u003Cbutton type=\"button\" class=\"code-block__copy\" aria-label=\"Copy code\">Copy\u003C\u002Fbutton>\u003C\u002Fdiv>\u003Cdiv class=\"code-block__body\">\u003Cpre class=\"shiki github-dark\" style=\"background-color:#24292e;color:#e1e4e8\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"color:#B392F0\">$\u003C\u002Fspan>\u003Cspan style=\"color:#9ECBFF\"> keytool\u003C\u002Fspan>\u003Cspan style=\"color:#79B8FF\"> -genkeypair\u003C\u002Fspan>\u003Cspan style=\"color:#79B8FF\"> -v\u003C\u002Fspan>\u003Cspan style=\"color:#79B8FF\"> -keystore\u003C\u002Fspan>\u003Cspan style=\"color:#9ECBFF\"> my-upload-key.keystore\u003C\u002Fspan>\u003Cspan style=\"color:#79B8FF\"> -alias\u003C\u002Fspan>\u003Cspan style=\"color:#9ECBFF\"> my-key-alias\u003C\u002Fspan>\u003Cspan style=\"color:#79B8FF\"> -keyalg\u003C\u002Fspan>\u003Cspan style=\"color:#9ECBFF\"> RSA\u003C\u002Fspan>\u003Cspan style=\"color:#79B8FF\"> -keysize\u003C\u002Fspan>\u003Cspan style=\"color:#79B8FF\"> 2048\u003C\u002Fspan>\u003Cspan style=\"color:#79B8FF\"> -validity\u003C\u002Fspan>\u003Cspan style=\"color:#79B8FF\"> 10000\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\u003C\u002Fdiv>\u003C\u002Fdiv>\n\u003Cp>This command prompts you for passwords for the keystore and key and for the Distinguished Name fields for your key. It then generates the keystore as a file called \u003Ccode>my-upload-key.keystore\u003C\u002Fcode>.\u003C\u002Fp>\n\u003Cp>The keystore contains a single key, valid for 10000 days. The alias is a name that you will use later when signing your app, so remember to take note of the alias.\u003C\u002Fp>\n\u003Cp>On Mac, if you’re not sure where your JDK bin folder is, then perform the following command to find it:\u003C\u002Fp>\n\u003Cdiv class=\"code-block\" data-lang=\"bash\">\u003Cdiv class=\"code-block__header\">\u003Cspan class=\"code-block__lang\">bash\u003C\u002Fspan>\u003Cbutton type=\"button\" class=\"code-block__copy\" aria-label=\"Copy code\">Copy\u003C\u002Fbutton>\u003C\u002Fdiv>\u003Cdiv class=\"code-block__body\">\u003Cpre class=\"shiki github-dark\" style=\"background-color:#24292e;color:#e1e4e8\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"color:#B392F0\">$\u003C\u002Fspan>\u003Cspan style=\"color:#9ECBFF\"> \u002Fusr\u002Flibexec\u002Fjava_home\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\u003C\u002Fdiv>\u003C\u002Fdiv>\n\u003Cp>It will output the directory of the JDK, which will look something like this:\u003C\u002Fp>\n\u003Cdiv class=\"code-block\" data-lang=\"text\">\u003Cdiv class=\"code-block__header\">\u003Cspan class=\"code-block__lang\">text\u003C\u002Fspan>\u003Cbutton type=\"button\" class=\"code-block__copy\" aria-label=\"Copy code\">Copy\u003C\u002Fbutton>\u003C\u002Fdiv>\u003Cdiv class=\"code-block__body\">\u003Cpre class=\"shiki github-dark\" style=\"background-color:#24292e;color:#e1e4e8\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan>\u002FLibrary\u002FJava\u002FJavaVirtualMachines\u002FjdkX.X.X_XXX.jdk\u002FContents\u002FHome\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\u003C\u002Fdiv>\u003C\u002Fdiv>\n\u003Cp>Navigate to that directory by using the command \u003Ccode>$ cd \u002Fyour\u002Fjdk\u002Fpath\u003C\u002Fcode> and use the keytool command with sudo permission as shown below.\u003C\u002Fp>\n\u003Cdiv class=\"code-block\" data-lang=\"bash\">\u003Cdiv class=\"code-block__header\">\u003Cspan class=\"code-block__lang\">bash\u003C\u002Fspan>\u003Cbutton type=\"button\" class=\"code-block__copy\" aria-label=\"Copy code\">Copy\u003C\u002Fbutton>\u003C\u002Fdiv>\u003Cdiv class=\"code-block__body\">\u003Cpre class=\"shiki github-dark\" style=\"background-color:#24292e;color:#e1e4e8\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"color:#B392F0\">$\u003C\u002Fspan>\u003Cspan style=\"color:#9ECBFF\"> sudo\u003C\u002Fspan>\u003Cspan style=\"color:#9ECBFF\"> keytool\u003C\u002Fspan>\u003Cspan style=\"color:#79B8FF\"> -genkey\u003C\u002Fspan>\u003Cspan style=\"color:#79B8FF\"> -v\u003C\u002Fspan>\u003Cspan style=\"color:#79B8FF\"> -keystore\u003C\u002Fspan>\u003Cspan style=\"color:#9ECBFF\"> my-upload-key.keystore\u003C\u002Fspan>\u003Cspan style=\"color:#79B8FF\"> -alias\u003C\u002Fspan>\u003Cspan style=\"color:#9ECBFF\"> my-key-alias\u003C\u002Fspan>\u003Cspan style=\"color:#79B8FF\"> -keyalg\u003C\u002Fspan>\u003Cspan style=\"color:#9ECBFF\"> RSA\u003C\u002Fspan>\u003Cspan style=\"color:#79B8FF\"> -keysize\u003C\u002Fspan>\u003Cspan style=\"color:#79B8FF\"> 2048\u003C\u002Fspan>\u003Cspan style=\"color:#79B8FF\"> -validity\u003C\u002Fspan>\u003Cspan style=\"color:#79B8FF\"> 10000\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\u003C\u002Fdiv>\u003C\u002Fdiv>\n\u003Cp>\u003Cem>Note: Remember to keep the keystore file private. In case you’ve lost upload key or it’s been compromised you should \u003Ca href=\"https:\u002F\u002Fsupport.google.com\u002Fgoogleplay\u002Fandroid-developer\u002Fanswer\u002F7384423#reset\">follow these instructions\u003C\u002Fa>.\u003C\u002Fem>\u003C\u002Fp>\n\u003Ch3 id=\"setting-up-gradle-variables\">Setting up Gradle variables\u003C\u002Fh3>\n\u003Col>\n\u003Cli>Place the \u003Ccode>my-upload-key.keystore\u003C\u002Fcode> file under the \u003Ccode>android\u002Fapp\u003C\u002Fcode> directory in your project folder.\u003C\u002Fli>\n\u003Cli>Edit the file \u003Ccode>~\u002F.gradle\u002Fgradle.properties\u003C\u002Fcode> or \u003Ccode>android\u002Fgradle.properties\u003C\u002Fcode>, and add the following (replace \u003Ccode>*****\u003C\u002Fcode> with the correct keystore password, alias and key password),\u003C\u002Fli>\n\u003C\u002Fol>\n\u003Cdiv class=\"code-block\" data-lang=\"text\">\u003Cdiv class=\"code-block__header\">\u003Cspan class=\"code-block__lang\">text\u003C\u002Fspan>\u003Cbutton type=\"button\" class=\"code-block__copy\" aria-label=\"Copy code\">Copy\u003C\u002Fbutton>\u003C\u002Fdiv>\u003Cdiv class=\"code-block__body\">\u003Cpre class=\"shiki github-dark\" style=\"background-color:#24292e;color:#e1e4e8\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan>MYAPP_UPLOAD_STORE_FILE=my-upload-key.keystore\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan>MYAPP_UPLOAD_KEY_ALIAS=my-key-alias\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan>MYAPP_UPLOAD_STORE_PASSWORD=*****\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan>MYAPP_UPLOAD_KEY_PASSWORD=*****\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\u003C\u002Fdiv>\u003C\u002Fdiv>\n\u003Cp>These are going to be global Gradle variables, which we can later use in our Gradle config to sign our app.\u003C\u002Fp>\n\u003Cp>\u003Cem>Note about security: If you are not keen on storing your passwords in plaintext, and you are running OSX, you can also \u003Ca href=\"https:\u002F\u002Fpilloxa.gitlab.io\u002Fposts\u002Fsafer-passwords-in-gradle\u002F\">store your credentials in the Keychain Access app\u003C\u002Fa>. Then you can skip the two last rows in \u003Ccode>~\u002F.gradle\u002Fgradle.properties\u003C\u002Fcode>.\u003C\u002Fem>\u003C\u002Fp>\n\u003Ch3 id=\"adding-signing-config-to-your-app-s-gradle-config\">Adding signing config to your app’s Gradle config\u003C\u002Fh3>\n\u003Cp>The last configuration step that needs to be done is to setup release builds to be signed using upload key. Edit the file \u003Ccode>android\u002Fapp\u002Fbuild.gradle\u003C\u002Fcode> in your project folder, and add the signing config,\u003C\u002Fp>\n\u003Cdiv class=\"code-block\" data-lang=\"groovy\">\u003Cdiv class=\"code-block__header\">\u003Cspan class=\"code-block__lang\">groovy\u003C\u002Fspan>\u003Cbutton type=\"button\" class=\"code-block__copy\" aria-label=\"Copy code\">Copy\u003C\u002Fbutton>\u003C\u002Fdiv>\u003Cdiv class=\"code-block__body\">\u003Cpre class=\"shiki github-dark\" style=\"background-color:#24292e;color:#e1e4e8\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"color:#F97583\">..\u003C\u002Fspan>\u003Cspan style=\"color:#E1E4E8\">.\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#E1E4E8\">android {\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#F97583\">    ..\u003C\u002Fspan>\u003Cspan style=\"color:#E1E4E8\">.\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#E1E4E8\">    defaultConfig { \u003C\u002Fspan>\u003Cspan style=\"color:#F97583\">..\u003C\u002Fspan>\u003Cspan style=\"color:#E1E4E8\">. }\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#E1E4E8\">    signingConfigs {\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#E1E4E8\">        release {\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#F97583\">            if\u003C\u002Fspan>\u003Cspan style=\"color:#E1E4E8\"> (project\u003C\u002Fspan>\u003Cspan style=\"color:#F97583\">.\u003C\u002Fspan>\u003Cspan style=\"color:#E1E4E8\">hasProperty(\u003C\u002Fspan>\u003Cspan style=\"color:#9ECBFF\">'MYAPP_UPLOAD_STORE_FILE'\u003C\u002Fspan>\u003Cspan style=\"color:#E1E4E8\">)) {\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#E1E4E8\">                storeFile file(\u003C\u002Fspan>\u003Cspan style=\"color:#79B8FF\">MYAPP_UPLOAD_STORE_FILE\u003C\u002Fspan>\u003Cspan style=\"color:#E1E4E8\">)\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#E1E4E8\">                storePassword \u003C\u002Fspan>\u003Cspan style=\"color:#79B8FF\">MYAPP_UPLOAD_STORE_PASSWORD\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#E1E4E8\">                keyAlias \u003C\u002Fspan>\u003Cspan style=\"color:#79B8FF\">MYAPP_UPLOAD_KEY_ALIAS\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#E1E4E8\">                keyPassword \u003C\u002Fspan>\u003Cspan style=\"color:#79B8FF\">MYAPP_UPLOAD_KEY_PASSWORD\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#E1E4E8\">            }\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#E1E4E8\">        }\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#E1E4E8\">    }\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#E1E4E8\">    buildTypes {\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#E1E4E8\">        release {\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#F97583\">            ..\u003C\u002Fspan>\u003Cspan style=\"color:#E1E4E8\">.\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#E1E4E8\">            signingConfig signingConfigs\u003C\u002Fspan>\u003Cspan style=\"color:#F97583\">.\u003C\u002Fspan>\u003Cspan style=\"color:#E1E4E8\">release\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#E1E4E8\">        }\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#E1E4E8\">    }\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#E1E4E8\">}\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#F97583\">..\u003C\u002Fspan>\u003Cspan style=\"color:#E1E4E8\">.\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\u003C\u002Fdiv>\u003C\u002Fdiv>\n\u003Ch3 id=\"generating-the-release-apk\">Generating the release APK\u003C\u002Fh3>\n\u003Cp>Run the following in a terminal:\u003C\u002Fp>\n\u003Cdiv class=\"code-block\" data-lang=\"bash\">\u003Cdiv class=\"code-block__header\">\u003Cspan class=\"code-block__lang\">bash\u003C\u002Fspan>\u003Cbutton type=\"button\" class=\"code-block__copy\" aria-label=\"Copy code\">Copy\u003C\u002Fbutton>\u003C\u002Fdiv>\u003Cdiv class=\"code-block__body\">\u003Cpre class=\"shiki github-dark\" style=\"background-color:#24292e;color:#e1e4e8\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"color:#B392F0\">$\u003C\u002Fspan>\u003Cspan style=\"color:#9ECBFF\"> cd\u003C\u002Fspan>\u003Cspan style=\"color:#9ECBFF\"> android\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#B392F0\">$\u003C\u002Fspan>\u003Cspan style=\"color:#9ECBFF\"> .\u002Fgradlew\u003C\u002Fspan>\u003Cspan style=\"color:#9ECBFF\"> bundleRelease\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\u003C\u002Fdiv>\u003C\u002Fdiv>\n\u003Cp>Gradle’s \u003Ccode>bundleRelease\u003C\u002Fcode> will bundle all the JavaScript needed to run your app into the AAB (\u003Ca href=\"https:\u002F\u002Fdeveloper.android.com\u002Fguide\u002Fapp-bundle\">Android App Bundle\u003C\u002Fa>). If you need to change the way the JavaScript bundle and\u002For drawable resources are bundled (e.g. if you changed the default file\u002Ffolder names or the general structure of the project), have a look at \u003Ccode>android\u002Fapp\u002Fbuild.gradle\u003C\u002Fcode> to see how you can update it to reflect these changes.\u003C\u002Fp>\n\u003Cblockquote>\n\u003Cp>Note: Make sure gradle.properties does not include \u003Cem>org.gradle.configureondemand=true\u003C\u002Fem> as that will make the release build skip bundling JS and assets into the app binary.\u003C\u002Fp>\n\u003C\u002Fblockquote>\n\u003Cp>The generated AAB can be found under \u003Ccode>android\u002Fapp\u002Fbuild\u002Foutputs\u002Fbundle\u002Frelease\u002Fapp.aab\u003C\u002Fcode>, and is ready to be uploaded to Google Play.\u003C\u002Fp>\n\u003Cp>\u003Cem>Note: In order for Google Play to accept AAB format the App Signing by Google Play needs to be configured for your application on the Google Play Console. If you are updating an existing app that doesn’t use App Signing by Google Play, please check our \u003Ca href=\"#migrating-old-android-react-native-apps-to-use-app-signing-by-google-play\">migration section\u003C\u002Fa> to learn how to perform that configuration change.\u003C\u002Fem>\u003C\u002Fp>\n\u003Ch3 id=\"testing-the-release-build-of-your-app\">Testing the release build of your app\u003C\u002Fh3>\n\u003Cp>Before uploading the release build to the Play Store, make sure you test it thoroughly. First uninstall any previous version of the app you already have installed. Install it on the device using the following command in the project root:\u003C\u002Fp>\n\u003Cdiv class=\"code-block\" data-lang=\"bash\">\u003Cdiv class=\"code-block__header\">\u003Cspan class=\"code-block__lang\">bash\u003C\u002Fspan>\u003Cbutton type=\"button\" class=\"code-block__copy\" aria-label=\"Copy code\">Copy\u003C\u002Fbutton>\u003C\u002Fdiv>\u003Cdiv class=\"code-block__body\">\u003Cpre class=\"shiki github-dark\" style=\"background-color:#24292e;color:#e1e4e8\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"color:#B392F0\">$\u003C\u002Fspan>\u003Cspan style=\"color:#9ECBFF\"> npx\u003C\u002Fspan>\u003Cspan style=\"color:#9ECBFF\"> react-native\u003C\u002Fspan>\u003Cspan style=\"color:#9ECBFF\"> run-android\u003C\u002Fspan>\u003Cspan style=\"color:#79B8FF\"> --variant=release\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\u003C\u002Fdiv>\u003C\u002Fdiv>\n\u003Cp>Note that \u003Ccode>--variant=release\u003C\u002Fcode> is only available if you’ve set up signing as described above.\u003C\u002Fp>\n\u003Cp>You can terminate any running bundler instances, since all your framework and JavaScript code is bundled in the APK’s assets.\u003C\u002Fp>\n\u003Ch3 id=\"publishing-to-other-stores\">Publishing to other stores\u003C\u002Fh3>\n\u003Cp>By default, the generated APK has the native code for both x86 and ARMv7a CPU architectures. This makes it easier to share APKs that run on almost all Android devices. However, this has the downside that there will be some unused native code on any device, leading to unnecessarily bigger APKs.\u003C\u002Fp>\n\u003Cp>You can create an APK for each CPU by changing the following line in android\u002Fapp\u002Fbuild.gradle:\u003C\u002Fp>\n\u003Cdiv class=\"code-block\" data-lang=\"text\">\u003Cdiv class=\"code-block__header\">\u003Cspan class=\"code-block__lang\">text\u003C\u002Fspan>\u003Cbutton type=\"button\" class=\"code-block__copy\" aria-label=\"Copy code\">Copy\u003C\u002Fbutton>\u003C\u002Fdiv>\u003Cdiv class=\"code-block__body\">\u003Cpre class=\"shiki github-dark\" style=\"background-color:#24292e;color:#e1e4e8\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan>- ndk {\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan>-   abiFilters \"armeabi-v7a\", \"x86\"\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan>- }\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan>- def enableSeparateBuildPerCPUArchitecture = false\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan>+ def enableSeparateBuildPerCPUArchitecture = true\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\u003C\u002Fdiv>\u003C\u002Fdiv>\n\u003Cp>Upload both these files to markets which support device targeting, such as \u003Ca href=\"https:\u002F\u002Fdeveloper.android.com\u002Fgoogle\u002Fplay\u002Fpublishing\u002Fmultiple-apks.html\">Google Play\u003C\u002Fa> and \u003Ca href=\"https:\u002F\u002Fdeveloper.amazon.com\u002Fdocs\u002Fapp-submission\u002Fdevice-filtering-and-compatibility.html\">Amazon AppStore\u003C\u002Fa>, and the users will automatically get the appropriate APK. If you want to upload to other markets, such as \u003Ca href=\"https:\u002F\u002Fwww.apkfiles.com\u002F\">APKFiles\u003C\u002Fa>, which do not support multiple APKs for a single app, change the following line as well to create the default universal APK with binaries for both CPUs.\u003C\u002Fp>\n\u003Cdiv class=\"code-block\" data-lang=\"text\">\u003Cdiv class=\"code-block__header\">\u003Cspan class=\"code-block__lang\">text\u003C\u002Fspan>\u003Cbutton type=\"button\" class=\"code-block__copy\" aria-label=\"Copy code\">Copy\u003C\u002Fbutton>\u003C\u002Fdiv>\u003Cdiv class=\"code-block__body\">\u003Cpre class=\"shiki github-dark\" style=\"background-color:#24292e;color:#e1e4e8\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan>- universalApk false  \u002F\u002F If true, also generate a universal APK\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan>+ universalApk true  \u002F\u002F If true, also generate a universal APK\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\u003C\u002Fdiv>\u003C\u002Fdiv>\n\u003Ch3 id=\"enabling-proguard-to-reduce-the-size-of-the-apk-optional\">Enabling Proguard to reduce the size of the APK (optional)\u003C\u002Fh3>\n\u003Cp>Proguard is a tool that can slightly reduce the size of the APK. It does this by stripping parts of the React Native Java bytecode (and its dependencies) that your app is not using.\u003C\u002Fp>\n\u003Cp>\u003Cem>\u003Cstrong>IMPORTANT\u003C\u002Fstrong>: Make sure to thoroughly test your app if you’ve enabled Proguard. Proguard often requires configuration specific to each native library you’re using. See \u003Ccode>app\u002Fproguard-rules.pro\u003C\u002Fcode>.\u003C\u002Fem>\u003C\u002Fp>\n\u003Cp>To enable Proguard, edit \u003Ccode>android\u002Fapp\u002Fbuild.gradle\u003C\u002Fcode>:\u003C\u002Fp>\n\u003Cdiv class=\"code-block\" data-lang=\"text\">\u003Cdiv class=\"code-block__header\">\u003Cspan class=\"code-block__lang\">text\u003C\u002Fspan>\u003Cbutton type=\"button\" class=\"code-block__copy\" aria-label=\"Copy code\">Copy\u003C\u002Fbutton>\u003C\u002Fdiv>\u003Cdiv class=\"code-block__body\">\u003Cpre class=\"shiki github-dark\" style=\"background-color:#24292e;color:#e1e4e8\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan>\u002F**\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan> * Run Proguard to shrink the Java bytecode in release builds.\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan> *\u002F\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan>def enableProguardInReleaseBuilds = true\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\u003C\u002Fdiv>\u003C\u002Fdiv>\n\u003Ch3 id=\"migrating-old-android-react-native-apps-to-use-app-signing-by-google-play\">Migrating old Android React Native apps to use App Signing by Google Play\u003C\u002Fh3>\n\u003Cp>If you are migrating from previous version of React Native chances are your app does not use App Signing by Google Play feature. We recommend you enable that in order to take advantage from things like automatic app splitting. In order to migrate from the old way of signing you need to start by \u003Ca href=\"#generating-an-upload-key\">generating new upload key\u003C\u002Fa> and then replacing release signing config in \u003Ccode>android\u002Fapp\u002Fbuild.gradle\u003C\u002Fcode> to use the upload key instead of the release one (see section about \u003Ca href=\"#adding-signing-config-to-your-app-s-gradle-config\">adding signing config to gradle\u003C\u002Fa>). Once that’s done you should follow the \u003Ca href=\"https:\u002F\u002Fsupport.google.com\u002Fgoogleplay\u002Fandroid-developer\u002Fanswer\u002F7384423\">instructions from Google Play Help website\u003C\u002Fa> in order to send your original release key to Google Play.\u003C\u002Fp>\n\u003Cblockquote>\n\u003Cp>Since this was helpful for me I have archived it. The Steps applies to native app as well.\u003C\u002Fp>\n\u003C\u002Fblockquote>\n",1796034893075]