The49.Maui.BottomSheet icon indicating copy to clipboard operation
The49.Maui.BottomSheet copied to clipboard

net9 rc3: Could not inflate Behavior subclass com.google.android.material.bottomsheet.BottomSheetBehavior

Open softlion opened this issue 1 year ago • 5 comments

I upgraded a project to net9 rc3, and when trying to display the bottom sheet, it is crashing with that message:

`the49_maui_bottom_sheet_design: Could not inflate Behavior subclass com.google.android.material.bottomsheet.BottomSheetBehavior`

Any idea how to workaround or fix ?

Using an android simulator Pixel5 API 34, and a maui app

related stack trace:

   at Android.Views.View.Inflate(Context context, Int32 resource, ViewGroup root) in /Users/runner/work/1/s/xamarin-android/src/Mono.Android/obj/Release/net9.0/android-35/mcw/Android.Views.View.cs:line 17974
   at The49.Maui.BottomSheet.BottomSheetController.EnsureWindowContainer()
   at The49.Maui.BottomSheet.BottomSheetController.Show(Boolean animated)
   at The49.Maui.BottomSheet.BottomSheetManager.PlatformShow(Window window, BottomSheet sheet, Boolean animated)
   at The49.Maui.BottomSheet.BottomSheetManager.Show(Window window, BottomSheet sheet, Boolean animated)
   at The49.Maui.BottomSheet.BottomSheet.ShowAsync(Window window, Boolean animated)

softlion avatar Oct 23 '24 06:10 softlion