Hello,
I have xamarin form application working well in API 16+ devices. But when i run the same application in version 4.0.4 / 4.0.3 it throws below errors.
Suggest me how can i overcome this error.
{System.Exception: AndroidEnvironmentOnUnhandledException ---> Java.Lang.NoSuchMethodError: no method with name='getLineSpacingMultiplier' signature='()F' in class Landroid/widget/TextView;
at Java.Interop.JniEnvironment+InstanceMethods.GetMethodID (Java.Interop.JniObjectReference type, System.String name, System.String signature) [0x0005b] in <286213b9e14c442ba8d8d94cc9dbec8e>:0
at Java.Interop.JniType.GetInstanceMethod (System.String name, System.String signature) [0x0000c] in <286213b9e14c442ba8d8d94cc9dbec8e>:0
at Java.Interop.JniPeerMembers+JniInstanceMethods.GetMethodInfo (System.String encodedMember) [0x00031] in <286213b9e14c442ba8d8d94cc9dbec8e>:0
at Java.Interop.JniPeerMembers+JniInstanceMethods.InvokeVirtualSingleMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters) [0x00045] in <286213b9e14c442ba8d8d94cc9dbec8e>:0
at Android.Widget.TextView.get_LineSpacingMultiplier () [0x0000a] in :0
I am damn sure the error is due to "getLineSpacingMultiplier" and "getLineSpacingExtra" method which is not working in below API 16. Is there any way in xamarin forms to overcome this ?