Crash in MAUI Android .NET 9 Telerik MAUI 8.0.0

1 Answer 239 Views
DataGrid
Anthony
Top achievements
Rank 1
Iron
Veteran
Anthony asked on 20 Nov 2024, 11:34 PM

Hi,

Just updated to .NET 9 and Telerik MAUI 8.0.0.

Getting a crash when using a RadDataGrid on android 5.1.1 (this version is supported by .NET 9). The crash was not happening on .NET 8 and Telerik MAUI 7.0.0.

        <telerik:RadDataGrid x:Name="dataGrid" ItemsSource="{Binding Items}" AutoGenerateColumns="False">

            <telerik:RadDataGrid.Columns>
                <telerik:DataGridTextColumn PropertyName="Name" SizeMode="Auto"/>
                <telerik:DataGridTextColumn PropertyName="Value" SizeMode="Stretch"/>
            </telerik:RadDataGrid.Columns>
            <telerik:RadDataGrid.GroupDescriptors>
                <telerik:PropertyGroupDescriptor PropertyName="Section"/>
            </telerik:RadDataGrid.GroupDescriptors>
        </telerik:RadDataGrid>

It looks like Telerik.Maui.Handlers.RadTextInputHandler.MapCustomCursorColor is trying to call to a function that does not exist in android 5.1.1.

[MonoDroid] UNHANDLED EXCEPTION:
[MonoDroid] Java.Lang.NoSuchMethodError: no non-static method "Landroidx/appcompat/widget/AppCompatEditText;.getTextCursorDrawable()Landroid/graphics/drawable/Drawable;"
[MonoDroid]    at Java.Interop.JniEnvironment.InstanceMethods.GetMethodID(JniObjectReference type, String name, String signature)
[MonoDroid]    at Java.Interop.JniType.GetInstanceMethod(String name, String signature)
[MonoDroid]    at Java.Interop.JniPeerMembers.JniInstanceMethods.GetMethodInfo(String method, String signature)
[MonoDroid]    at Java.Interop.JniPeerMembers.JniInstanceMethods.GetMethodInfo(String encodedMember)
[MonoDroid]    at Java.Interop.JniPeerMembers.JniInstanceMethods.InvokeVirtualObjectMethod(String encodedMember, IJavaPeerable self, JniArgumentValue* parameters)
[MonoDroid]    at Android.Widget.TextView.get_TextCursorDrawable()
[MonoDroid]    at Telerik.Maui.Handlers.RadTextInputHandler.MapCustomCursorColor(RadTextInputHandler handler, IRadTextInput virtualElement)
[MonoDroid]    at Microsoft.Maui.PropertyMapper`2.<>c__DisplayClass5_0[[Telerik.Maui.IRadTextInput, Telerik.Maui.Core, Version=8.0.0.0, Culture=neutral, PublicKeyToken=5803cfa389c90ce7],[Telerik.Maui.Handlers.RadTextInputHandler, Telerik.Maui.Core, Version=8.0.0.0, Culture=neutral, PublicKeyToken=5803cfa389c90ce7]].<Add>b__0(IElementHandler h, IElement v)
[MonoDroid]    at Microsoft.Maui.PropertyMapper.UpdatePropertyCore(String key, IElementHandler viewHandler, IElement virtualView)
[MonoDroid]    at Microsoft.Maui.PropertyMapper.UpdateProperties(IElementHandler viewHandler, IElement virtualView)
[MonoDroid]    at Microsoft.Maui.Handlers.ElementHandler.SetVirtualView(IElement view)
[MonoDroid]    at Microsoft.Maui.Handlers.ViewHandler`2[[Microsoft.Maui.IEntry, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[AndroidX.AppCompat.Widget.AppCompatEditText, Xamarin.AndroidX.AppCompat, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].SetVirtualView(IView view)
[MonoDroid]    at Microsoft.Maui.Handlers.EntryHandler.SetVirtualView(IView view)
[MonoDroid]    at Telerik.Maui.Handlers.RadTextInputHandler.SetVirtualView(IView virtualView)
[MonoDroid]    at Microsoft.Maui.Handlers.ViewHandler`2[[Microsoft.Maui.IEntry, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[AndroidX.AppCompat.Widget.AppCompatEditText, Xamarin.AndroidX.AppCompat, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].SetVirtualView(IElement view)
[MonoDroid]    at Microsoft.Maui.Controls.Element.SetHandler(IElementHandler newHandler)
[MonoDroid]    at Microsoft.Maui.Controls.Element.set_Handler(IElementHandler value)
[MonoDroid]    at Microsoft.Maui.Controls.VisualElement.Microsoft.Maui.IElement.set_Handler(IElementHandler value)
[MonoDroid]    at Microsoft.Maui.Platform.ElementExtensions.ToHandler(IElement view, IMauiContext context)
[MonoDroid]    at Microsoft.Maui.Platform.ElementExtensions.ToPlatform(IElement view, IMauiContext context)
[MonoDroid]    at Microsoft.Maui.Handlers.LayoutHandler.SetVirtualView(IView view)
[MonoDroid]    at Microsoft.Maui.Handlers.ViewHandler`2[[Microsoft.Maui.ILayout, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Microsoft.Maui.Platform.LayoutViewGroup, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].SetVirtualView(IElement view)
[MonoDroid]    at Microsoft.Maui.Controls.Element.SetHandler(IElementHandler newHandler)
[MonoDroid]    at Microsoft.Maui.Controls.Element.set_Handler(IElementHandler value)
[MonoDroid]    at Microsoft.Maui.Controls.VisualElement.Microsoft.Maui.IElement.set_Handler(IElementHandler value)
[MonoDroid]    at Microsoft.Maui.Platform.ElementExtensions.ToHandler(IElement view, IMauiContext context)
[MonoDroid]    at Microsoft.Maui.Platform.ElementExtensions.ToPlatform(IElement view, IMauiContext context)
[MonoDroid]    at Microsoft.Maui.Handlers.LayoutHandler.SetVirtualView(IView view)
[MonoDroid]    at Microsoft.Maui.Handlers.ViewHandler`2[[Microsoft.Maui.ILayout, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Microsoft.Maui.Platform.LayoutViewGroup, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].SetVirtualView(IElement view)
[MonoDroid]    at Microsoft.Maui.Controls.Element.SetHandler(IElementHandler newHandler)
[MonoDroid]    at Microsoft.Maui.Controls.Element.set_Handler(IElementHandler value)
[MonoDroid]    at Microsoft.Maui.Controls.VisualElement.Microsoft.Maui.IElement.set_Handler(IElementHandler value)
[MonoDroid]    at Microsoft.Maui.Platform.ElementExtensions.ToHandler(IElement view, IMauiContext context)
[MonoDroid]    at Microsoft.Maui.Platform.ElementExtensions.ToPlatform(IElement view, IMauiContext context)
[MonoDroid]    at Microsoft.Maui.Handlers.ContentViewHandler.UpdateContent(IContentViewHandler handler)
[MonoDroid]    at Microsoft.Maui.Handlers.ContentViewHandler.MapContent(IContentViewHandler handler, IContentView page)
[MonoDroid]    at Microsoft.Maui.PropertyMapper`2.<>c__DisplayClass5_0[[Microsoft.Maui.IContentView, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Microsoft.Maui.Handlers.IContentViewHandler, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].<Add>b__0(IElementHandler h, IElement v)
[MonoDroid]    at Microsoft.Maui.PropertyMapper.UpdatePropertyCore(String key, IElementHandler viewHandler, IElement virtualView)
[MonoDroid]    at Microsoft.Maui.PropertyMapper.UpdateProperty(IElementHandler viewHandler, IElement virtualView, String property)
[MonoDroid]    at Microsoft.Maui.Handlers.ElementHandler.UpdateValue(String property)
[MonoDroid]    at Microsoft.Maui.Controls.TemplatedView.OnApplyTemplateImpl()
[MonoDroid]    at Microsoft.Maui.Controls.TemplatedView.OnApplyTemplate()
[MonoDroid]    at Telerik.Maui.Controls.RadCompositeContentView.OnApplyTemplate()
[MonoDroid]    at Telerik.Maui.Controls.RadEntry.OnApplyTemplate()
[MonoDroid]    at Microsoft.Maui.Controls.TemplatedView.Microsoft.Maui.Controls.IControlTemplated.OnApplyTemplate()
[MonoDroid]    at Microsoft.Maui.Controls.TemplateUtilities.OnControlTemplateChanged(BindableObject bindable, Object oldValue, Object newValue)
[MonoDroid]    at Microsoft.Maui.Controls.BindableObject.OnBindablePropertySet(BindableProperty property, Object original, Object value, Boolean didChange, Boolean willFirePropertyChanged)
[MonoDroid]    at Microsoft.Maui.Controls.Element.OnBindablePropertySet(BindableProperty property, Object original, Object value, Boolean changed, Boolean willFirePropertyChanged)
[MonoDroid]    at Microsoft.Maui.Controls.BindableObject.SetValueActual(BindableProperty property, BindablePropertyContext context, Object value, Boolean currentlyApplying, SetValueFlags attributes, SetterSpecificity specificity, Boolean silent)
[MonoDroid]    at Microsoft.Maui.Controls.BindableObject.SetValueCore(BindableProperty property, Object value, SetValueFlags attributes, SetValuePrivateFlags privateAttributes, SetterSpecificity specificity)
[MonoDroid]    at Microsoft.Maui.Controls.BindableObject.SetValue(BindableProperty property, Object value)
[MonoDroid]    at Telerik.Maui.Controls.RadCompositeContentView.set_ActualControlTemplate(ControlTemplate value)
[MonoDroid]    at Telerik.Maui.Controls.RadCompositeContentView.UpdateActualControlTemplate(ControlTemplate customTemplate)
[MonoDroid]    at Telerik.Maui.Controls.RadCompositeContentView.UpdateActualControlTemplate()
[MonoDroid]    at Telerik.Maui.Controls.RadCompositeContentView.InitializeComponent()
[MonoDroid]    at Telerik.Maui.Controls.RadCompositeContentView.OnHandlerChanged()
[MonoDroid]    at Microsoft.Maui.Controls.Element.OnHandlerChangedCore()
[MonoDroid]    at Microsoft.Maui.Controls.VisualElement.OnHandlerChangedCore()
[MonoDroid]    at Microsoft.Maui.Controls.View.OnHandlerChangedCore()
[MonoDroid]    at Microsoft.Maui.Controls.Element.SetHandler(IElementHandler newHandler)
[MonoDroid]    at Microsoft.Maui.Controls.Element.set_Handler(IElementHandler value)
[MonoDroid]    at Microsoft.Maui.Controls.VisualElement.Microsoft.Maui.IElement.set_Handler(IElementHandler value)
[MonoDroid]    at Microsoft.Maui.Platform.ElementExtensions.ToHandler(IElement view, IMauiContext context)
[MonoDroid]    at Microsoft.Maui.Platform.ElementExtensions.ToPlatform(IElement view, IMauiContext context)
[MonoDroid]    at Telerik.Maui.RadBorderExtensions.UpdateBorderContent(BorderViewGroup view, IRadBorder border)
[MonoDroid]    at Telerik.Maui.Handlers.RadBorderHandler.MapContent(RadBorderHandler handler, IRadBorder border)
[MonoDroid]    at Microsoft.Maui.PropertyMapper`2.<>c__DisplayClass5_0[[Telerik.Maui.IRadBorder, Telerik.Maui.Core, Version=8.0.0.0, Culture=neutral, PublicKeyToken=5803cfa389c90ce7],[Telerik.Maui.Handlers.RadBorderHandler, Telerik.Maui.Core, Version=8.0.0.0, Culture=neutral, PublicKeyToken=5803cfa389c90ce7]].<Add>b__0(IElementHandler h, IElement v)
[MonoDroid]    at Microsoft.Maui.PropertyMapper.UpdatePropertyCore(String key, IElementHandler viewHandler, IElement virtualView)
[MonoDroid]    at Microsoft.Maui.PropertyMapper.UpdateProperties(IElementHandler viewHandler, IElement virtualView)
[MonoDroid]    at Microsoft.Maui.Handlers.ElementHandler.SetVirtualView(IElement view)
[MonoDroid]    at Microsoft.Maui.Handlers.ViewHandler`2[[Telerik.Maui.IRadBorder, Telerik.Maui.Core, Version=8.0.0.0, Culture=neutral, PublicKeyToken=5803cfa389c90ce7],[Telerik.Maui.Border.BorderViewGroup, Telerik.Maui.Core, Version=8.0.0.0, Culture=neutral, PublicKeyToken=5803cfa389c90ce7]].SetVirtualView(IView view)
[MonoDroid]    at Microsoft.Maui.Handlers.ViewHandler`2[[Telerik.Maui.IRadBorder, Telerik.Maui.Core, Version=8.0.0.0, Culture=neutral, PublicKeyToken=5803cfa389c90ce7],[Telerik.Maui.Border.BorderViewGroup, Telerik.Maui.Core, Version=8.0.0.0, Culture=neutral, PublicKeyToken=5803cfa389c90ce7]].SetVirtualView(IElement view)
[MonoDroid]    at Microsoft.Maui.Controls.Element.SetHandler(IElementHandler newHandler)
[MonoDroid]    at Microsoft.Maui.Controls.Element.set_Handler(IElementHandler value)
[MonoDroid]    at Microsoft.Maui.Controls.VisualElement.Microsoft.Maui.IElement.set_Handler(IElementHandler value)
[MonoDroid]    at Microsoft.Maui.Platform.ElementExtensions.ToHandler(IElement view, IMauiContext context)
[MonoDroid]    at Microsoft.Maui.Platform.ElementExtensions.ToPlatform(IElement view, IMauiContext context)
[MonoDroid]    at Microsoft.Maui.Handlers.ContentViewHandler.UpdateContent(IContentViewHandler handler)
[MonoDroid]    at Microsoft.Maui.Handlers.ContentViewHandler.MapContent(IContentViewHandler handler, IContentView page)
[MonoDroid]    at Microsoft.Maui.PropertyMapper`2.<>c__DisplayClass5_0[[Microsoft.Maui.IContentView, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Microsoft.Maui.Handlers.IContentViewHandler, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].<Add>b__0(IElementHandler h, IElement v)
[MonoDroid]    at Microsoft.Maui.PropertyMapper.UpdatePropertyCore(String key, IElementHandler viewHandler, IElement virtualView)
[MonoDroid]    at Microsoft.Maui.PropertyMapper.UpdateProperty(IElementHandler viewHandler, IElement virtualView, String property)
[MonoDroid]    at Microsoft.Maui.Handlers.ElementHandler.UpdateValue(String property)
[MonoDroid]    at Microsoft.Maui.Controls.TemplatedView.OnApplyTemplateImpl()
[MonoDroid]    at Microsoft.Maui.Controls.TemplatedView.OnApplyTemplate()
[MonoDroid]    at Telerik.Maui.Controls.RadCompositeContentView.OnApplyTemplate()
[MonoDroid]    at Telerik.Maui.Controls.EntryToolbarItemView.OnApplyTemplate()
[MonoDroid]    at Microsoft.Maui.Controls.TemplatedView.Microsoft.Maui.Controls.IControlTemplated.OnApplyTemplate()
[MonoDroid]    at Microsoft.Maui.Controls.TemplateUtilities.OnControlTemplateChanged(BindableObject bindable, Object oldValue, Object newValue)
[MonoDroid]    at Microsoft.Maui.Controls.BindableObject.OnBindablePropertySet(BindableProperty property, Object original, Object value, Boolean didChange, Boolean willFirePropertyChanged)
[MonoDroid]    at Microsoft.Maui.Controls.Element.OnBindablePropertySet(BindableProperty property, Object original, Object value, Boolean changed, Boolean willFirePropertyChanged)
[MonoDroid]    at Microsoft.Maui.Controls.BindableObject.SetValueActual(BindableProperty property, BindablePropertyContext context, Object value, Boolean currentlyApplying, SetValueFlags attributes, SetterSpecificity specificity, Boolean silent)
[MonoDroid]    at Microsoft.Maui.Controls.BindableObject.SetValueCore(BindableProperty property, Object value, SetValueFlags attributes, SetValuePrivateFlags privateAttributes, SetterSpecificity specificity)
[MonoDroid]    at Microsoft.Maui.Controls.BindableObject.SetValue(BindableProperty property, Object value)
[MonoDroid]    at Telerik.Maui.Controls.RadCompositeContentView.set_ActualControlTemplate(ControlTemplate value)
[MonoDroid]    at Telerik.Maui.Controls.RadCompositeContentView.UpdateActualControlTemplate(ControlTemplate customTemplate)
[MonoDroid]    at Telerik.Maui.Controls.RadCompositeContentView.UpdateActualControlTemplate()
[MonoDroid]    at Telerik.Maui.Controls.RadCompositeContentView.InitializeComponent()
[MonoDroid]    at Telerik.Maui.Controls.RadCompositeContentView.OnHandlerChanged()
[MonoDroid]    at Microsoft.Maui.Controls.Element.OnHandlerChangedCore()
[MonoDroid]    at Microsoft.Maui.Controls.VisualElement.OnHandlerChangedCore()
[MonoDroid]    at Microsoft.Maui.Controls.View.OnHandlerChangedCore()
[MonoDroid]    at Microsoft.Maui.Controls.Element.SetHandler(IElementHandler newHandler)
[MonoDroid]    at Microsoft.Maui.Controls.Element.set_Handler(IElementHandler value)
[MonoDroid]    at Microsoft.Maui.Controls.VisualElement.Microsoft.Maui.IElement.set_Handler(IElementHandler value)
[MonoDroid]    at Microsoft.Maui.Platform.ElementExtensions.ToHandler(IElement view, IMauiContext context)
[MonoDroid]    at Microsoft.Maui.Platform.ElementExtensions.ToPlatform(IElement view, IMauiContext context)
[MonoDroid]    at Microsoft.Maui.Handlers.LayoutHandler.Insert(Int32 index, IView child)
[MonoDroid]    at Microsoft.Maui.Handlers.LayoutHandler.MapInsert(ILayoutHandler handler, ILayout layout, Object arg)
[MonoDroid]    at Microsoft.Maui.CommandMapper`2.<>c__DisplayClass6_0[[Microsoft.Maui.ILayout, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Microsoft.Maui.ILayoutHandler, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].<Add>b__0(IElementHandler h, IElement v, Object o)
[MonoDroid]    at Microsoft.Maui.CommandMapper.InvokeCore(String key, IElementHandler viewHandler, IElement virtualView, Object args)
[MonoDroid]    at Microsoft.Maui.CommandMapper.Invoke(IElementHandler viewHandler, IElement virtualView, String property, Object args)
[MonoDroid]    at Microsoft.Maui.Handlers.ElementHandler.Invoke(String command, Object args)
[MonoDroid]    at Microsoft.Maui.Controls.Layout.NotifyHandler(String action, Int32 index, IView view)
[MonoDroid]    at Microsoft.Maui.Controls.Layout.OnInsert(Int32 index, IView view)
[MonoDroid]    at Microsoft.Maui.Controls.Layout.Insert(Int32 index, IView child)
[MonoDroid]    at Telerik.Maui.Controls.RadToolbar.OnStripItemAdded(Int32 itemIndex, ToolbarItem toolbarItem)
[MonoDroid]    at Telerik.Maui.Controls.RadToolbar.OnStripItemAdded(Object sender, ObservableItemCollectionChangedEventArgs`1 eventArgs)
[MonoDroid]    at Telerik.Maui.ObservableItemCollection`1[[Telerik.Maui.Controls.ToolbarItem, Telerik.Maui.Controls, Version=8.0.0.0, Culture=neutral, PublicKeyToken=5803cfa389c90ce7]].RaiseEvent(EventHandler`1 handler, ToolbarItem item, Int32 index)
[MonoDroid]    at Telerik.Maui.ObservableItemCollection`1[[Telerik.Maui.Controls.ToolbarItem, Telerik.Maui.Controls, Version=8.0.0.0, Culture=neutral, PublicKeyToken=5803cfa389c90ce7]].OnItemAdded(ToolbarItem item, Int32 index)
[MonoDroid]    at Telerik.Maui.ObservableItemCollection`1[[Telerik.Maui.Controls.ToolbarItem, Telerik.Maui.Controls, Version=8.0.0.0, Culture=neutral, PublicKeyToken=5803cfa389c90ce7]].HandleItemsAdded(IList items, Int32 startingIndex)
[MonoDroid]    at Telerik.Maui.ObservableItemCollection`1[[Telerik.Maui.Controls.ToolbarItem, Telerik.Maui.Controls, Version=8.0.0.0, Culture=neutral, PublicKeyToken=5803cfa389c90ce7]].ObservedCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
[MonoDroid]    at System.Collections.ObjectModel.ObservableCollection`1[[Telerik.Maui.Controls.ToolbarItem, Telerik.Maui.Controls, Version=8.0.0.0, Culture=neutral, PublicKeyToken=5803cfa389c90ce7]].OnCollectionChanged(NotifyCollectionChangedEventArgs e)
[MonoDroid]    at System.Collections.ObjectModel.ObservableCollection`1[[Telerik.Maui.Controls.ToolbarItem, Telerik.Maui.Controls, Version=8.0.0.0, Culture=neutral, PublicKeyToken=5803cfa389c90ce7]].OnCollectionChanged(NotifyCollectionChangedAction action, Object item, Int32 index)
[MonoDroid]    at System.Collections.ObjectModel.ObservableCollection`1[[Telerik.Maui.Controls.ToolbarItem, Telerik.Maui.Controls, Version=8.0.0.0, Culture=neutral, PublicKeyToken=5803cfa389c90ce7]].InsertItem(Int32 index, ToolbarItem item)
[MonoDroid]    at System.Collections.ObjectModel.Collection`1[[Telerik.Maui.Controls.ToolbarItem, Telerik.Maui.Controls, Version=8.0.0.0, Culture=neutral, PublicKeyToken=5803cfa389c90ce7]].Insert(Int32 index, ToolbarItem item)
[MonoDroid]    at Telerik.Maui.Controls.RadToolbar.AddStripItem(Int32 itemIndex, ToolbarItem toolbarItem)
[MonoDroid]    at Telerik.Maui.Controls.RadToolbar.AddToolbarItem(Int32 itemIndex, ToolbarItem toolbarItem)
[MonoDroid]    at Telerik.Maui.Controls.RadToolbar.OnHierarchyItemAdded(Int32 itemIndex, ToolbarItem toolbarItem)
[MonoDroid]    at Telerik.Maui.Controls.RadToolbar.OnHierarchyItemAdded(Object sender, ObservableItemCollectionChangedEventArgs`1 eventArgs)
[MonoDroid]    at Telerik.Maui.Controls.ToolbarHierarchyManager.RaiseItemAdded(ObservableItemCollectionChangedEventArgs`1 eventArgs)
[MonoDroid]    at Telerik.Maui.Controls.ToolbarHierarchyManager.OnItemAdded(Object sender, ObservableItemCollectionChangedEventArgs`1 eventArgs)
[MonoDroid]    at Telerik.Maui.ObservableItemCollection`1[[Telerik.Maui.Controls.ToolbarItem, Telerik.Maui.Controls, Version=8.0.0.0, Culture=neutral, PublicKeyToken=5803cfa389c90ce7]].RaiseEvent(EventHandler`1 handler, ToolbarItem item, Int32 index)
[MonoDroid]    at Telerik.Maui.ObservableItemCollection`1[[Telerik.Maui.Controls.ToolbarItem, Telerik.Maui.Controls, Version=8.0.0.0, Culture=neutral, PublicKeyToken=5803cfa389c90ce7]].OnItemAdded(ToolbarItem item, Int32 index)
[MonoDroid]    at Telerik.Maui.ObservableItemCollection`1[[Telerik.Maui.Controls.ToolbarItem, Telerik.Maui.Controls, Version=8.0.0.0, Culture=neutral, PublicKeyToken=5803cfa389c90ce7]].HandleItemsAdded(IList items, Int32 startingIndex)
[MonoDroid]    at Telerik.Maui.ObservableItemCollection`1[[Telerik.Maui.Controls.ToolbarItem, Telerik.Maui.Controls, Version=8.0.0.0, Culture=neutral, PublicKeyToken=5803cfa389c90ce7]].ObservedCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
[MonoDroid]    at System.Collections.ObjectModel.ObservableCollection`1[[Telerik.Maui.Controls.ToolbarItem, Telerik.Maui.Controls, Version=8.0.0.0, Culture=neutral, PublicKeyToken=5803cfa389c90ce7]].OnCollectionChanged(NotifyCollectionChangedEventArgs e)
[MonoDroid]    at System.Collections.ObjectModel.ObservableCollection`1[[Telerik.Maui.Controls.ToolbarItem, Telerik.Maui.Controls, Version=8.0.0.0, Culture=neutral, PublicKeyToken=5803cfa389c90ce7]].OnCollectionChanged(NotifyCollectionChangedAction action, Object item, Int32 index)
[MonoDroid]    at System.Collections.ObjectModel.ObservableCollection`1[[Telerik.Maui.Controls.ToolbarItem, Telerik.Maui.Controls, Version=8.0.0.0, Culture=neutral, PublicKeyToken=5803cfa389c90ce7]].InsertItem(Int32 index, ToolbarItem item)
[MonoDroid]    at System.Collections.ObjectModel.Collection`1[[Telerik.Maui.Controls.ToolbarItem, Telerik.Maui.Controls, Version=8.0.0.0, Culture=neutral, PublicKeyToken=5803cfa389c90ce7]].Add(ToolbarItem item)
[MonoDroid]    at Telerik.Maui.Controls.ToolbarHierarchyManager.OnItemsChanged()
[MonoDroid]    at Telerik.Maui.Controls.ToolbarHierarchyManager.OnHierarchyChanged()
[MonoDroid]    at Telerik.Maui.Controls.ToolbarHierarchyManager.Push(IEnumerable`1 toolbarItems)
[MonoDroid]    at Telerik.Maui.Controls.RadToolbar.OnHandlerChanged()
[MonoDroid]    at Microsoft.Maui.Controls.Element.OnHandlerChangedCore()
[MonoDroid]    at Microsoft.Maui.Controls.VisualElement.OnHandlerChangedCore()
[MonoDroid]    at Microsoft.Maui.Controls.View.OnHandlerChangedCore()
[MonoDroid]    at Microsoft.Maui.Controls.Element.SetHandler(IElementHandler newHandler)
[MonoDroid]    at Microsoft.Maui.Controls.Element.set_Handler(IElementHandler value)
[MonoDroid]    at Microsoft.Maui.Controls.VisualElement.Microsoft.Maui.IElement.set_Handler(IElementHandler value)
[MonoDroid]    at Microsoft.Maui.Platform.ElementExtensions.ToHandler(IElement view, IMauiContext context)
[MonoDroid]    at Microsoft.Maui.Platform.ElementExtensions.ToPlatform(IElement view, IMauiContext context)
[MonoDroid]    at Telerik.Maui.RadBorderExtensions.UpdateBorderContent(BorderViewGroup view, IRadBorder border)
[MonoDroid]    at Telerik.Maui.Handlers.RadBorderHandler.MapContent(RadBorderHandler handler, IRadBorder border)
[MonoDroid]    at Microsoft.Maui.PropertyMapper`2.<>c__DisplayClass5_0[[Telerik.Maui.IRadBorder, Telerik.Maui.Core, Version=8.0.0.0, Culture=neutral, PublicKeyToken=5803cfa389c90ce7],[Telerik.Maui.Handlers.RadBorderHandler, Telerik.Maui.Core, Version=8.0.0.0, Culture=neutral, PublicKeyToken=5803cfa389c90ce7]].<Add>b__0(IElementHandler h, IElement v)
[MonoDroid]    at Microsoft.Maui.PropertyMapper.UpdatePropertyCore(String key, IElementHandler viewHandler, IElement virtualView)
[MonoDroid]    at Microsoft.Maui.PropertyMapper.UpdateProperties(IElementHandler viewHandler, IElement virtualView)
[MonoDroid]    at Microsoft.Maui.Handlers.ElementHandler.SetVirtualView(IElement view)
[MonoDroid]    at Microsoft.Maui.Handlers.ViewHandler`2[[Telerik.Maui.IRadBorder, Telerik.Maui.Core, Version=8.0.0.0, Culture=neutral, PublicKeyToken=5803cfa389c90ce7],[Telerik.Maui.Border.BorderViewGroup, Telerik.Maui.Core, Version=8.0.0.0, Culture=neutral, PublicKeyToken=5803cfa389c90ce7]].SetVirtualView(IView view)
[MonoDroid]    at Microsoft.Maui.Handlers.ViewHandler`2[[Telerik.Maui.IRadBorder, Telerik.Maui.Core, Version=8.0.0.0, Culture=neutral, PublicKeyToken=5803cfa389c90ce7],[Telerik.Maui.Border.BorderViewGroup, Telerik.Maui.Core, Version=8.0.0.0, Culture=neutral, PublicKeyToken=5803cfa389c90ce7]].SetVirtualView(IElement view)
[MonoDroid]    at Microsoft.Maui.Controls.Element.SetHandler(IElementHandler newHandler)
[MonoDroid]    at Microsoft.Maui.Controls.Element.set_Handler(IElementHandler value)
[MonoDroid]    at Microsoft.Maui.Controls.VisualElement.Microsoft.Maui.IElement.set_Handler(IElementHandler value)
[MonoDroid]    at Microsoft.Maui.Platform.ElementExtensions.ToHandler(IElement view, IMauiContext context)
[MonoDroid]    at Microsoft.Maui.Platform.ElementExtensions.ToPlatform(IElement view, IMauiContext context)
[MonoDroid]    at Microsoft.Maui.Handlers.LayoutHandler.SetVirtualView(IView view)
[MonoDroid]    at Microsoft.Maui.Handlers.ViewHandler`2[[Microsoft.Maui.ILayout, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Microsoft.Maui.Platform.LayoutViewGroup, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].SetVirtualView(IElement view)
[MonoDroid]    at Microsoft.Maui.Controls.Element.SetHandler(IElementHandler newHandler)
[MonoDroid]    at Microsoft.Maui.Controls.Element.set_Handler(IElementHandler value)
[MonoDroid]    at Microsoft.Maui.Controls.VisualElement.Microsoft.Maui.IElement.set_Handler(IElementHandler value)
[MonoDroid]    at Microsoft.Maui.Platform.ElementExtensions.ToHandler(IElement view, IMauiContext context)
[MonoDroid]    at Microsoft.Maui.Platform.ElementExtensions.ToPlatform(IElement view, IMauiContext context)
[MonoDroid]    at Microsoft.Maui.Handlers.LayoutHandler.SetVirtualView(IView view)
[MonoDroid]    at Microsoft.Maui.Handlers.ViewHandler`2[[Microsoft.Maui.ILayout, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Microsoft.Maui.Platform.LayoutViewGroup, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].SetVirtualView(IElement view)
[MonoDroid]    at Microsoft.Maui.Controls.Element.SetHandler(IElementHandler newHandler)
[MonoDroid]    at Microsoft.Maui.Controls.Element.set_Handler(IElementHandler value)
[MonoDroid]    at Microsoft.Maui.Controls.VisualElement.Microsoft.Maui.IElement.set_Handler(IElementHandler value)
[MonoDroid]    at Microsoft.Maui.Platform.ElementExtensions.ToHandler(IElement view, IMauiContext context)
[MonoDroid]    at Microsoft.Maui.Platform.ElementExtensions.ToPlatform(IElement view, IMauiContext context)
[MonoDroid]    at Microsoft.Maui.Handlers.ContentViewHandler.UpdateContent(IContentViewHandler handler)
[MonoDroid]    at Microsoft.Maui.Handlers.ContentViewHandler.MapContent(IContentViewHandler handler, IContentView page)
[MonoDroid]    at Microsoft.Maui.PropertyMapper`2.<>c__DisplayClass5_0[[Microsoft.Maui.IContentView, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Microsoft.Maui.Handlers.IContentViewHandler, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].<Add>b__0(IElementHandler h, IElement v)
[MonoDroid]    at Microsoft.Maui.PropertyMapper.UpdatePropertyCore(String key, IElementHandler viewHandler, IElement virtualView)
[MonoDroid]    at Microsoft.Maui.PropertyMapper.UpdateProperties(IElementHandler viewHandler, IElement virtualView)
[MonoDroid]    at Microsoft.Maui.Handlers.ElementHandler.SetVirtualView(IElement view)
[MonoDroid]    at Microsoft.Maui.Handlers.ViewHandler`2[[Microsoft.Maui.IContentView, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Microsoft.Maui.Platform.ContentViewGroup, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].SetVirtualView(IView view)
[MonoDroid]    at Microsoft.Maui.Handlers.ContentViewHandler.SetVirtualView(IView view)
[MonoDroid]    at Microsoft.Maui.Handlers.ViewHandler`2[[Microsoft.Maui.IContentView, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Microsoft.Maui.Platform.ContentViewGroup, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].SetVirtualView(IElement view)
[MonoDroid]    at Microsoft.Maui.Controls.Element.SetHandler(IElementHandler newHandler)
[MonoDroid]    at Microsoft.Maui.Controls.Element.set_Handler(IElementHandler value)
[MonoDroid]    at Microsoft.Maui.Controls.VisualElement.Microsoft.Maui.IElement.set_Handler(IElementHandler value)
[MonoDroid]    at Microsoft.Maui.Platform.ElementExtensions.ToHandler(IElement view, IMauiContext context)
[MonoDroid]    at Microsoft.Maui.Platform.ElementExtensions.ToPlatform(IElement view, IMauiContext context)
[MonoDroid]    at Microsoft.Maui.Platform.MauiContextExtensions.ToPlatform(IView view, IMauiContext fragmentMauiContext, Context context, LayoutInflater layoutInflater, FragmentManager childFragmentManager)
[MonoDroid]    at Microsoft.Maui.Platform.NavigationViewFragment.OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
[MonoDroid]    at AndroidX.Fragment.App.Fragment.n_OnCreateView_Landroid_view_LayoutInflater_Landroid_view_ViewGroup_Landroid_os_Bundle_(IntPtr jnienv, IntPtr native__this, IntPtr native_inflater, IntPtr native_container, IntPtr native_savedInstanceState)
[MonoDroid]    at Android.Runtime.JNINativeWrapper.Wrap_JniMarshal_PPLLL_L(_JniMarshal_PPLLL_L callback, IntPtr jnienv, IntPtr klazz, IntPtr p0, IntPtr p1, IntPtr p2)
[MonoDroid]   --- End of managed Java.Lang.NoSuchMethodError stack trace ---

1 Answer, 1 is accepted

Sort by
0
Didi
Telerik team
answered on 21 Nov 2024, 01:49 PM

Hello Anthony,

I have logged the behavior here: https://feedback.telerik.com/maui/1671195-entry-unhandled-exception-on-android-5-1-with-telerik-maui-8-0-0 and escalated to the dev team. 

As a solution use higher version than 5.1. For example I tested on Android 11, 12, etc.

Regards,
Didi
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Anthony
Top achievements
Rank 1
Iron
Veteran
commented on 21 Nov 2024, 08:42 PM

Hi Didi,

Thanks, but your suggested solution is not applicable. We have customers with tablets running Android 5.1.1, we cannot ask them to spend money on new tablets because of a bug in software.

Regards

Anthony

Didi
Telerik team
commented on 22 Nov 2024, 06:01 AM

Hi anthony,

I understand your point. Still the Border and Entry controls we have in 8.0.0 version use API that is not available for 5.1 Android version.

You can add the following code in the App.xaml.cs file. Still these code removes the border control

public partial class App : Application
{
    public App()
    {

        InitializeComponent();
#if ANDROID
        Telerik.Maui.Handlers.RadTextInputHandler.TextInputMapper.ModifyMapping("CustomCursorColor", (h, v, m) => { });
        Telerik.Maui.Handlers.RadBorderHandler.BorderMapper.ModifyMapping(nameof(IRadBorder.Background), (h, v, m) => { });
        Telerik.Maui.Handlers.RadBorderHandler.BorderMapper.ModifyMapping(nameof(IRadBorder.BackgroundColor), (h, v, m) => { });
        Telerik.Maui.Handlers.RadBorderHandler.BorderMapper.ModifyMapping(nameof(IRadBorder.BorderColor), (h, v, m) => { });
        Telerik.Maui.Handlers.RadBorderHandler.BorderMapper.ModifyMapping(nameof(IRadBorder.BorderBrush), (h, v, m) => { });
        Telerik.Maui.Handlers.RadBorderHandler.BorderMapper.ModifyMapping(nameof(IRadBorder.CornerRadius), (h, v, m) => { });
        Telerik.Maui.Handlers.RadBorderHandler.BorderMapper.ModifyMapping(nameof(IRadBorder.BorderThickness), (h, v, m) => { });
#endif
        this.MainPage = new MainPage();
    }
}

Anthony
Top achievements
Rank 1
Iron
Veteran
commented on 25 Nov 2024, 12:16 AM

Hi Didi,

I just ran our app on an Android 9 tablet and this crash is happening on Android 9 as well. I haven't tested your workaround as yet.

Regards
Anthony

Didi
Telerik team
commented on 25 Nov 2024, 06:10 AM

Hi Anthony,

We are aware the issue happens also on .NET 9. In the log bug report, we do not specify the .NET version.

Give the workaround a try, still keep in mind that this workaround removes the border. This is the option I can suggest.

Anthony
Top achievements
Rank 1
Iron
Veteran
commented on 25 Nov 2024, 06:31 AM

Hi Didi,

The workaround stops the crashes, however all of the RadBorder elements I have used everywhere else in the app also get removed which isn't great.

Regards

Anthony

Didi
Telerik team
commented on 25 Nov 2024, 06:33 AM

Hi Anthony, 

I explained that the workaround removes the border. This is the option I can suggest for now, also you can downgrade the Telerik MAUI version to 7.1.0 as the behavior happens with 8.0.0 version. 

Anthony
Top achievements
Rank 1
Iron
Veteran
commented on 26 Nov 2024, 02:41 AM

Hi Didi,

I will be rolling back to 7.1.0 as most Telerik controls use the RadBorder for underlines and the app ends up looking terrible and inconsistent without them.

I hope Telerik fixes these crashes as a priority, many of your customers would still be using these older android versions. Those versions are officially still supported by MAUI so any MAUI related controls should also support them.

Regards

Anthony

Didi
Telerik team
commented on 26 Nov 2024, 06:55 AM

I can assure you the case is escalated to the dev team.
Larry
Top achievements
Rank 1
Iron
Iron
Veteran
commented on 12 Feb 2025, 12:15 AM

FYI, I also have this issue, and Maui does say that the Android requirements have not changed. I will admit that, right now, this affects only my testing. However, when my app is released, this could easily be an issue. Thanks.
Didi
Telerik team
commented on 12 Feb 2025, 08:55 AM

Hi all,
The issue is fixed in Telerik MAUI 10.0.0 version. Update to the latest version and test the fix on your side https://feedback.telerik.com/maui/1671195-entry-unhandled-exception-on-android-5-1-with-telerik-maui-8-0-0 
Larry
Top achievements
Rank 1
Iron
Iron
Veteran
commented on 12 Feb 2025, 06:53 PM

Fantastic Didi - feels like you did it just because I complained yesterday ! :) (ha ha ha)
Larry
Top achievements
Rank 1
Iron
Iron
Veteran
commented on 12 Feb 2025, 07:52 PM

I just have to say again that the serendipitous timing was nice... gotta take wins when they come! And, yes, the fix does indeed work!
Tags
DataGrid
Asked by
Anthony
Top achievements
Rank 1
Iron
Veteran
Answers by
Didi
Telerik team
Share this question
or