Hello,
I am using the SfDataGrid on a device with Android 4.0.3 (API 15) and get this exception:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Java.Lang.NoSuchMethodError: no method with name='setImportantForAccessibility' signature='(I)V' in class Landroid/view/ViewGroup;
at Java.Interop.JniEnvironment+InstanceMethods.GetMethodID (Java.Interop.JniObjectReference type, System.String name, System.String signature) [0x0005b] in <ece62f2e9f6940e3a2e32b79be7fde53>:0
at Java.Interop.JniType.GetInstanceMethod (System.String name, System.String signature) [0x0000c] in <ece62f2e9f6940e3a2e32b79be7fde53>:0
at Java.Interop.JniPeerMembers+JniInstanceMethods.GetMethodInfo (System.String encodedMember) [0x00031] in <ece62f2e9f6940e3a2e32b79be7fde53>:0
at Java.Interop.JniPeerMembers+JniInstanceMethods.InvokeVirtualVoidMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters) [0x00045] in <ece62f2e9f6940e3a2e32b79be7fde53>:0
at Android.Views.View.set_ImportantForAccessibility (Android.Views.ImportantForAccessibility value) [0x00022] in <c7e98e7ffdc14e358cd8f1a94c33b7db>:0
at Syncfusion.SfDataGrid.GridCell..ctor (Android.Content.Context context) [0x0000d] in <6e14ac368baa493fa5e88010b038214d>:0
at GroupsSummary_Exporting.CardLineInfoCell..ctor (Android.Content.Context context) [0x00000] in /Users/dev/Downloads/CardLine_Sample/GroupsSummary_Exporting/CardLineInfoCell.cs:23
at at (wrapper managed-to-native) System.Reflection.MonoCMethod.InternalInvoke(System.Reflection.MonoCMethod,object,object[],System.Exception&)
at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00002] in <4d6eb5dfe2ab4eee884ef920069afd5f>:0
at java.lang.NoSuchMethodError: no method with name='setImportantForAccessibility' signature='(I)V' in class Landroid/view/ViewGroup;
at at md55874dfd2a88599a01e5dc305694af0fb.VisualContainer.n_onMeasure(Native Method)
at at md55874dfd2a88599a01e5dc305694af0fb.VisualContainer.onMeasure(VisualContainer.java:54)
at at android.view.View.measure(View.java:12723)
at at md55874dfd2a88599a01e5dc305694af0fb.ScrollViewer.n_measureChildWithMargins(Native Method)
at at md55874dfd2a88599a01e5dc305694af0fb.ScrollViewer.measureChildWithMargins(ScrollViewer.java:163)
at at android.widget.FrameLayout.onMeasure(FrameLayout.java:293)
at at android.view.View.measure(View.java:12723)
at at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4698)
at at android.widget.FrameLayout.onMeasure(FrameLayout.java:293)
at at md55874dfd2a88599a01e5dc305694af0fb.SfDataGrid.n_onMeasure(Native Method)
at at md55874dfd2a88599a01e5dc305694af0fb.SfDataGrid.onMeasure(SfDataGrid.java:64)
at at android.view.View.measure(View.java:12723)
at at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4698)
at at android.widget.FrameLayout.onMeasure(FrameLayout.java:293)
at at android.view.View.measure(View.java:12723)
at at android.widget.LinearLayout.measureVertical(LinearLayout.java:812)
at at android.widget.LinearLayout.onMeasure(LinearLayout.java:553)
at at android.view.View.measure(View.java:12723)
at at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4698)
at at android.widget.FrameLayout.onMeasure(FrameLayout.java:293)
at at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2092)
at at android.view.View.measure(View.java:12723)
at at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1064)
at at android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2442)
at at android.os.Handler.dispatchMessage(Handler.java:99)
at at android.os.Looper.loop(Looper.java:137)
at at android.app.ActivityThread.main(ActivityThread.java:4424)
at at java.lang.reflect.Method.invokeNative(Native Method)
at at java.lang.reflect.Method.invoke(Method.java:511)
at at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
at at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
at at dalvik.system.NativeStart.main(Native Method)
--- End of inner exception stack trace ---
at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00017] in <4d6eb5dfe2ab4eee884ef920069afd5f>:0
at System.Reflection.MonoCMethod.DoInvoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0007a] in <4d6eb5dfe2ab4eee884ef920069afd5f>:0
at System.Reflection.MonoCMethod.Invoke (System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <4d6eb5dfe2ab4eee884ef920069afd5f>:0
at System.RuntimeType.CreateInstanceImpl (System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Object[] args, System.Globalization.CultureInfo culture, System.Object[] activationAttributes, System.Threading.StackCrawlMark& stackMark) [0x001e0] in <4d6eb5dfe2ab4eee884ef920069afd5f>:0
Thanks,
Markus