Unable to run the apk generated in release mode

dedeepya yarlagadda 50 Reputation points
2024-07-19T14:04:09.2+00:00

Hi

I have .Net MAUI app, version .net8. The release build is built without errors but when I run it is not opening the app and it is crashing.

Please let us know if there are any additional settings required here.

Thanks

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,578 questions
{count} votes

Accepted answer
  1. Leon Lu (Shanghai Wicresoft Co,.Ltd.) 76,386 Reputation points Microsoft Vendor
    2024-07-22T02:06:04.85+00:00

    Hello,

    You can open this Device log(Tools->Android->Device log), when you open your application, will you get some errors or exceptions in the device log?

    dedeepya yarlagadda verified the device log and I am able to trace the issue, there is an issue of passing the bindingcontext in OnPageChanged() method due to which it is throwing a null pointer. Now the app is opening after installation.

    Best Regards,

    Leon Lu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.