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
carlysierra
Mar 09, 2026Occasional Reader
This is such a common pain point with MAUI! 😅 From what I've seen in the community, a lot of these publish errors come down to missing Android SDK components or mismatched build tools versions. Worth checking your MAUI workload is fully updated via dotnet workload update — that alone fixed things for a few people I know. Are you building in Release or Debug mode? That can also make a big difference!