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
StrathdeeK
Nov 24, 2021Copper Contributor
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
- SampsonYeNov 25, 2021Copper Contributor
Wowo nice, it work!!
just use dotnet cli can finish it
but why VS 2022 Preview Can't publish suitable apk?
- NicolasKrierNov 24, 2022Copper Contributor
In the MAUI proj settings, there is a combobox/dropdownlist where you set your preferences
See Android package sectionBut when bundle (aab) is made, it generates the apk too at the same time.
Check your bin\Release\net7.0-android folder