If you prefer the terminal, use the apksigner tool included in the Android SDK: apksigner sign --ks [YOUR_KEYSTORE] [YOUR_APK_FILE]
Always run zipalign on your APK before signing with apksigner to ensure the file is optimized for Android. 🛠️ 4. Verify the Signature
Before installing, verify that the signature is valid to avoid installation errors. Run the command: apksigner verify [YOUR_SIGNED_APK_FILE] .
Choose your existing keystore and enter the passwords you created. Select the build variant.