Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 89864

Java.Lang.NoSuchMethodError: no method with name='getLineSpacingMultiplier' signature='()F' in class

$
0
0

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 ?


Viewing all articles
Browse latest Browse all 89864

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>