.NET 10 MAUI Android emulator shows blank screen on login page after working yesterday

guo tuo 0 Reputation points
2026-10-20T02:21:09.69+00:00

In VS2026 MAUI, the login page displays normally on a Windows machine, but it is a blank white screen on the Android emulator. I want to know how to troubleshoot the problem.

Developer technologies | .NET | .NET Multi-platform App UI

Locked Question. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

Answer recommended by moderator
guo tuo 0 Reputation points
2026-10-20T08:38:01.98+00:00

Thank you for your suggestions! I finally found the root cause of this issue. I accidentally deleted the [Application] attribute from MainApplication.cs in the Platforms/Android folder. Without this attribute, the Android system uses a default Application class, which prevents the MAUI engine (MauiProgram.CreateMauiApp()) from initializing properly. That's why the Splash screen showed, but the MAUI UI was blank. I added [Application] back and the issue is resolved! Hope this helps other developers who might make the same mistake.

Was this answer helpful?

2 people found this answer helpful.
0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Nguyen Dam (WICLOUD CORPORATION) 1,010 Reputation points Microsoft External Staff Moderator
    2026-10-20T10:01:18.6366667+00:00

    Hi @guo tuo , thank you for confirming that restoring the [Application] attribute in MainApplication.cs resolved the issue.

    To provide some additional context on the solution, missing attributes may not necessarily result in an obvious build error or exception, so they can cause hard-to-trace issues and easily be overlooked during troubleshooting. Thus, checking for them could be a useful troubleshooting step.

    As you found in this case, the missing attribute in Platforms/Android/MainApplication.cs was the cause. The [Application] attribute is important because it tells Android to use MainApplication when the app starts. Without it, the normal .NET MAUI initialization through MainApplication may not take place.

    using Android.App;
    using Android.Runtime;
    namespace YourApp;
    
    [Application]
    public class MainApplication : MauiApplication
    {
        public MainApplication(IntPtr handle, JniHandleOwnership ownership)
            : base(handle, ownership)
        {
        }
        protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
    }
    

    For similar project-specific issues, comparing the files under Platforms/Android with those from a newly created .NET MAUI project can also help identify accidental changes or omissions.

    If you found my explanation was helpful or informative to the solution, I would greatly appreciate it if you could follow this guide so others with the same issue can benefit as well. Thank you. 

    Was this answer helpful?

    0 comments No comments
  2. Swetha P 0 Reputation points
    2026-10-20T09:03:54.3666667+00:00

    logcat --pid=<PID> instead to narrow down to your

    Was this answer helpful?

    0 comments No comments
  3. Nguyen Dam (WICLOUD CORPORATION) 1,010 Reputation points Microsoft External Staff Moderator
    2026-10-20T02:54:29.86+00:00

    Hi @guo tuo , and thank you for reaching out. 

    I will need more information to troubleshoot this issue, as a blank white screen alone does not indicate what is failing. 

    Here are some suggestions of what you can do now:  

    • Check the login page and the flow leading to it – see if there's any code, components, APIs that are actually not supported on Android. 
    • Run 'adb logcat'.  (Better yet, use adb logcat *:E instead to narrow down output to error logs, or adb logcat --pid=<PID> instead to narrow down to your own app's logs.  You can get the running app's PID with adb shell pidof <package-name>.) 
    • Test the app on a physical Android device – if it works normally there this should likely be an emulator-only issue. 

    You can also provide the relevant login page code and any errors from adb logcat if you need help troubleshooting further. Please feel free to ask if you have any questions or need clarification on any of the steps above. 

    If you found my response helpful or informative, I would greatly appreciate it if you could follow this guide for your confirmation. Thank you.

    Was this answer helpful?

    0 comments No comments