Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

MAUI App Failed to Install (Local device) when built in Release mode

I am new to .NET maui, When I try to run my ecommerce app (MVVM databinding)(debug mode) to my locally connected phone then all fine(installing succefully).
But When I change to Release mode and try the same then I am getting error in vs2022 17.5-P1 is that "Failed to install APK".

Thanks in advance.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

I have come across the same issue and solved it by disabling compiled bindings either globally or at least those that are bound to the class.

e.g)

[XamlCompilation (XamlCompilationOptions.Skip)]
public partial class HomePage: ContentPage
{
…
}
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading