UNHANDLED EXCEPTION ON QUIT

Giorgio Sfiligoi 481 Reputation points
2025-10-21T11:33:25.9866667+00:00

I just migrated to VS 2026 Insiders and tried the NET MAUI 10 Sample that is generated when you create a new project. Testing with Emulator API 36.

Pressing the '<' hardware button of the emulator throws the exception:

'Android.Runtime.JavaProxyThrowable'

that shows for a few seconds, then the app quits as expected.

What's the issue?

Developer technologies | .NET | .NET MAUI
{count} votes

2 answers

Sort by: Most helpful
  1. Surya Amrutha Vaishnavi Lanka (INFOSYS LIMITED) 810 Reputation points Microsoft External Staff
    2025-10-21T13:03:44.6066667+00:00

    Thanks for reaching out, Here are some steps you can follow

    1.Track the Exception: Ensure you are tracking exceptions in your application code. You can use Crashes.TrackError to log unhandled exceptions. This will help you gather more data on what's causing the crash.

    2.Check App Configuration: Make sure your app’s configuration matches what’s expected for using the emulator. Sometimes, using an incompatible API level may introduce issues.

    3.Investigate Code for Exceptions: Carefully review the code associated with the emulator button press and ensure that any potential issues are caught.

    4.Update Dependencies: Check if there are any updates available for .NET MAUI or related libraries. Sometimes bugs in earlier versions may have already been fixed in newer releases.

    5.Check Emulator Settings: Verify if the emulator settings are correctly configured. Sometimes issues arise from the emulator’s configuration rather than the application itself.


  2. Giorgio Sfiligoi 481 Reputation points
    2025-10-22T07:54:12.5+00:00

    Answer to Starry Night:

    Please refer to my comment posted 21st.

    I tried with Android Emulator, API 36 and 29: same issue.

    To reproduce the issue, just create a new project for NET 10 and check 'Include sample content'. Run it, then press the '<' key on the emulator.

    0 comments No comments

Your answer

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