Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] CommunityToolkit samples app is broken on Android #2487

Open
2 tasks done
JRosanowski opened this issue Feb 2, 2025 · 4 comments
Open
2 tasks done

[Bug] CommunityToolkit samples app is broken on Android #2487

JRosanowski opened this issue Feb 2, 2025 · 4 comments
Labels
bug Something isn't working unverified

Comments

@JRosanowski
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Did you read the "Reporting a bug" section on Contributing file?

Current Behavior

Exception trying to navigate to any page in the sample app.
System.NotSupportedException
Message=Unable to activate instance of type Microsoft.Maui.Controls.Platform.Compatibility.ShellItemRenderer from native handle 0x7fda730da0 (key_handle 0x41e2660).

Expected Behavior

No exceptions

Steps To Reproduce

Build the sample app. Debug and try to navigate to any of the pages.

Link to public reproduction project repository

https://github.com/CommunityToolkit/Maui

Environment

- .NET MAUI CommunityToolkit: main branch
- OS: Windows 11
- .NET MAUI: 9.0.102
- Visual Studio 17.12.4

Anything else?

No response

@JRosanowski JRosanowski added bug Something isn't working unverified labels Feb 2, 2025
@TheCodeTraveler

This comment has been minimized.

@TheCodeTraveler TheCodeTraveler closed this as not planned Won't fix, can't repro, duplicate, stale Feb 2, 2025
@JRosanowski

This comment has been minimized.

@github-actions github-actions bot locked and limited conversation to collaborators Feb 4, 2025
@TheCodeTraveler
Copy link
Collaborator

TheCodeTraveler commented Feb 6, 2025

This appears to be an issue caused by a mismatch between net9.0-android workload and the Microsoft.Maui.Controls NuGet Package.

For now, the workaround is to set options.SetShouldUseStatusBarBehaviorOnAndroidModalPage(false);

.UseMauiCommunityToolkit(static options =>
{
    options.SetShouldEnableSnackbarOnWindows(true);
    options.SetShouldUseStatusBarBehaviorOnAndroidModalPage(false);
})

@TheCodeTraveler
Copy link
Collaborator

@jfversluis Is this a known issue on the .NET MAUI team? It's nearly identical to the same issue that was resolved in SR3; here's the Discord link to our conversation about it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working unverified
Projects
None yet
Development

No branches or pull requests

2 participants