When you first began developing apps, you were likely extremely enthusiastic about the opportunity to publish your app and make it available to a wide audience. The process of publishing an app is essential for gaining visibility and reaching potential users.
While the general process of app publishing is relatively similar across different platforms, each platform has its own set of rules and procedures. In this article, we will walk you through the process of publishing an app on Android using .NET MAUI. Rest assured, the process is quite straightforward. It's important to pay close attention to each step outlined in this article.
So, let's dive in and discover how to publish your .NET MAUI app on Android!
Step 1. Generate Keystore
As a policy google has updated the official docs of Microsoft are not very relevant due to the migration of Google Play Developer APIs in Google Cloud.
here is a simple way to generate a Keystore
Right-click on the solution and one developer console.
Step 2. Paste the code with your credentials for the application.
keytool -genkey -v -keystore lawfirm.app.keystore -alias key -keyalg RSA -keysize 2048 -validity 10000
It will Generate the keystore in Solution Explorer.
When all set move the keystore peak tool encryption_public_key(available on the publish section of Play Store) in a folder.
Open cmd with admin privileges
C:\java\bin\java.exe -jar pepk.jar --keystore=lawfirm.app.keystore --alias=key --output=output.zip --include-cert --rsa-aes-encryption --encryption-key-path=encryption_public_key.pem
Please note that download the open jdk and move to an accessible location.
That is all now you can upload the Keystore to Google Play Console and upload your app bundle sign with that key.