Skip to content

Deploying MAUI Blazor Hybrid app to Android emulator crashes immediately with Java.Lang.IllegalArgumentException #30719

@mattleibow

Description

@mattleibow

Description

Copied from https://developercommunity.visualstudio.com/t/Deploying-MAUI-Blazor-Hybrid-app-to-Andr/10939705

  1. Create a new .NET MAUI Blazor Hybrid and Web app,
  2. Select .NET 10 (Preview) and check to use sample pages
  3. Build and deploy to Android emulator (Pixel 7 API 35)
  4. Application crashes with:

Java.Lang.IllegalArgumentException
Message=No view found for id 0x7f0800f8 (com.companyname.bhaw10:id/labeled) for fragment NavigationRootManager_ElementBasedFragment{176138a} (a3261369-7643-47c0-be2b-8bb753b6fd20 id=0x7f0800f8)

Steps to Reproduce

No response

Link to public reproduction project repository

No response

Version with bug

10.0.0-preview.6

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

9.0.90 SR9

Affected platforms

Android

Affected platform versions

Visual Studio 17.14.9 Preview 1, .NET 10 Preview 6

Did you find any workaround?

No response

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-blazorBlazor Hybrid / Desktop, BlazorWebViewi/regressionThis issue described a confirmed regression on a currently supported versionp/0Current heighest priority issues that we are targeting for a release.t/bugSomething isn't working

    Type

    Projects

    Status

    Done

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions