if you want to use "Publish an Android app for ad-hoc distribution",you will fail. there is a bug in there and will need to wait for a long time to be repaired.
so you would use "https://learn.microsoft.com/en-us/dotnet/maui/android/deployment/publish-cli?view=net-maui-9.0" instead.
if you do not want to waste your time.please do it. thank you.