Publishing Your App for Android
Preparing For Publish
Building your app
Packaging your app using the CLI
To build your app from the CLI, on Windows, Linux, or macOS:
Open a terminal, command line, or powershell
Navigate to your
csprojfolderPublish the app using:
dotnet publish -f net9.0-android -c Release -o ./publishOnce the build is done, the output
.apkand.aabfiles are located in the./publishfolder.
Publishing your Android App
Publishing an Uno Platform app uses the same steps as .NET for Android-based technologies.
Your app can be published:
- Through a market – There are multiple Android marketplaces that exist for distribution, with the most well-known being Google Play, or Amazon.
- Via a website – An Uno Platform app can be made available for download on a website, from which users may then install the app by clicking on a link.
- Using
adbon the command line, withadb install your.apk. In Visual Studio 2022, you can open a shell withadbavailable in thePATHwith the Tools, Android, Android Adb Command Prompt menu.
Publishing an Uno Platform also uses the same steps as a MAUI app, which is based on .NET for Android. You can follow these steps and links to publish your app.