Forum Discussion
SampsonYe
Nov 23, 2021Copper Contributor
How to build MAUI to apk?
i try publish,it can not work
- Nov 24, 2021
Using the dotnet cli you can build an apk using the following command:
dotnet build -f net6.0-android
The apk file will be built, and you can find it at <app-root-dir>/bin/release/net6.0-android/com.companyname.appname-Signed.apk
JamesMontemagno
Microsoft
Dec 01, 2022Take a look at the docs as well: https://learn.microsoft.com/en-us/dotnet/maui/android/deployment/overview?view=net-maui-7.0
THe default is an app bundle when publishing as this is the standard format, but you can change it in your csproj settings.
THe default is an app bundle when publishing as this is the standard format, but you can change it in your csproj settings.