Unplanned
Last Updated: 26 Nov 2024 02:44 by Anthony
Anthony
Created on: 21 Nov 2024 13:45
Category: Entry
Type: Bug Report
3
Entry: Unhandled Exception on Android 5.1 with Telerik MAUI 8.0.0

When updating to Telerik MAUI 8.0.0 and building the app on Android 5.1 the controls that use RadTextInput internally crash

Controls like, DataGrid, RadEntry, ComboBox, AutoComplete, Numeric, Masked

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, IElemen

.....

1 comment
Anthony
Posted on: 26 Nov 2024 02:44
I have tested up to Android 9 and these crashes also occur there.

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.