Nov 24 2021 03:13 AM
Solution
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
Nov 25 2021 08:43 AM
Wowo nice, it work!!
just use dotnet cli can finish it
but why VS 2022 Preview Can't publish suitable apk?
Nov 24 2022 06:57 AM
In the MAUI proj settings, there is a combobox/dropdownlist where you set your preferences
See Android package section
But when bundle (aab) is made, it generates the apk too at the same time.
Check your bin\Release\net7.0-android folder
Dec 01 2022 01:58 PM
Jul 23 2023 04:45 AM
Dec 13 2023 03:18 AM
@SampsonYe Right click on the project and hit publish. Make sure you have the desired framework selected and it will create the archive.
Not sure why MS felt the need to change this but still leave the View Archives option.
Nov 24 2021 03:13 AM
Solution
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