We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Error on Android

Thread ID:

Created:

Updated:

Platform:

Replies:

142232 Jan 23,2019 05:45 PM UTC Feb 4,2019 12:03 PM UTC Xamarin.Forms 5
loading
Tags: SfTextInputLayout
RODRIGO AMARAL
Asked On January 23, 2019 05:45 PM UTC

Hello, at some point when my application accesses a page with the control, I get the following error

Unable to activate instance of type Java.Lang.Runnable from native handle 0x7fff6e999444 (key_handle 0x33c22a6).

>> Inner Exception

(Message)
No constructor found for Java.Lang.Runnable::.ctor(System.IntPtr, Android.Runtime.JniHandleOwnership)

(Full)
{System.MissingMethodException: No constructor found for Java.Lang.Runnable::.ctor(System.IntPtr, Android.Runtime.JniHandleOwnership) ---> Java.Interop.JavaLocationException: Exception of type 'Java.Interop.JavaLocationException' was thrown.
   --- End of inner exception stack trace ---
  at Java.Interop.TypeManager.CreateProxy (System.Type type, System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer) [0x00055] in <ea97b6d670fe4c1ba9dadb89b2fa0103>:0 
  at Java.Interop.TypeManager.CreateInstance (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer, System.Type targetType) [0x00116] in <ea97b6d670fe4c1ba9dadb89b2fa0103>:0 }

[Stacktrace]

  at (wrapper dynamic-method) System.Object.20(intptr,intptr)
  at (wrapper native-to-managed) System.Object.20(intptr,intptr)

thanks!

Bharathiraja K [Syncfusion]
Replied On January 24, 2019 05:38 AM UTC

Hi Rodrigo, 
 
Since we are not aware of your exact application scenario, we were not able to reproduce this issue at our end, so can you please revert us with the below details with replication procedure.  
 
1.  Code snippet which is used in your application (OR), 
2. Create a simple which reproduce the issue 
 
This will be helpful for us to investigate further and provide you a better solution at the earliest. 
 
Thanks, 
Bharathiraja. 


Emil
Replied On January 27, 2019 01:57 AM UTC

it is obviously related to this problem 
https://www.syncfusion.com/forums/141631/error-on-sftextinputlayout-on-android-4-4-java-lang-nosuchmethoderror-no-method-with-name

Bharathiraja K [Syncfusion]
Replied On January 28, 2019 01:47 PM UTC

Hi Rodrigo,  
 
We have fixed the mentioned issue in the Forum and moved to our latest Nuget version 16.4.0.48 version. So, please check with our latest Nuget version and update us whether your issue resolved. If not, please share your code snippet and Stack Trace report to investigate the issue and provide you the solution earlier. 
 
Thanks, 
Bharathiraja.  


RODRIGO AMARAL
Replied On February 3, 2019 03:36 PM UTC

Hi,

No it didn't work. Here's the stack

System.NotSupportedException: Unable to activate instance of type Java.Lang.Runnable from native handle 0xbf8a1cdc (key_handle 0xb364211). ---> System.MissingMethodException: No constructor found for Java.Lang.Runnable::.ctor(System.IntPtr, Android.Runtime.JniHandleOwnership) ---> Java.Interop.JavaLocationException: Exception of type 'Java.Interop.JavaLocationException' was thrown.
  at Java.Lang.Error: Exception of type 'Java.Lang.Error' was thrown.
  at java.lang.Error: Java callstack:
  at at mono.java.lang.Runnable.n_run(Native Method)
  at at mono.java.lang.Runnable.run(Runnable.java:30)
  at at android.os.Handler.handleCallback(Handler.java:790)
  at at android.os.Handler.dispatchMessage(Handler.java:99)
  at at android.os.Looper.loop(Looper.java:164)
  at at android.app.ActivityThread.main(ActivityThread.java:6494)
  at at java.lang.reflect.Method.invoke(Native Method)
  at at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
  at at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
  --- End of inner exception stack trace ---
  at Java.Interop.TypeManager.CreateProxy (System.Type type, System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer) [0x00055] in <ea97b6d670fe4c1ba9dadb89b2fa0103>:0
  at Java.Interop.TypeManager.CreateInstance (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer, System.Type targetType) [0x00116] in <ea97b6d670fe4c1ba9dadb89b2fa0103>:0
  --- End of inner exception stack trace ---


System.NotSupportedException: Unable to activate instance of type Java.Lang.Runnable from native handle 0xbf8a1cdc (key_handle 0xb364211). ---> System.MissingMethodException: No constructor found for Java.Lang.Runnable::.ctor(System.IntPtr, Android.Runtime.JniHandleOwnership) ---> Java.Interop.JavaLocationException: Exception of type 'Java.Interop.JavaLocationException' was thrown.
  at Java.Lang.Error: Exception of type 'Java.Lang.Error' was thrown.
  at java.lang.Error: Java callstack:
  at at mono.java.lang.Runnable.n_run(Native Method)
  at at mono.java.lang.Runnable.run(Runnable.java:30)
  at at android.os.Handler.handleCallback(Handler.java:790)
  at at android.os.Handler.dispatchMessage(Handler.java:99)
  at at android.os.Looper.loop(Looper.java:164)
  at at android.app.ActivityThread.main(ActivityThread.java:6494)
  at at java.lang.reflect.Method.invoke(Native Method)
  at at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
  at at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
  --- End of inner exception stack trace ---
  at Java.Interop.TypeManager.CreateProxy (System.Type type, System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer) [0x00055] in <ea97b6d670fe4c1ba9dadb89b2fa0103>:0
  at Java.Interop.TypeManager.CreateInstance (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer, System.Type targetType) [0x00116] in <ea97b6d670fe4c1ba9dadb89b2fa0103>:0
  --- End of inner exception stack trace ---
  at at (wrapper dynamic-method) System.Object.20(intptr,intptr)
  at at (wrapper native-to-managed) System.Object.20(intptr,intptr)




My XAML is attached



Attachment: LoginWithEmailPage.xaml_7455f6d4.zip

Bharathiraja K [Syncfusion]
Replied On February 4, 2019 12:03 PM UTC

Hi Rodrigo 
 
Sorry for the inconvenience caused. Actually, that we have fixed the issue “NoSuchMethodError: no method with name='setClipToOutline'” in another forum ID: 141631 which is reproduced in Android 4.4 version and updated the same response to you.  
 
We have analyzed the reported issue which updated by you in your last update and we have tried to replicate the reported issue at our end by creating a simple sample, we are afraid that we are not able to reproduce the issue at our end. And we suspect that whether the issue is caused due TextInputLayout control in Android version 4.4. 
 
Since we are not aware of your exact application scenario, we were not able to reproduce this issue at our end, so can you please revert us by modifying the sample based on your application along with replication procedure. This will be helpful for us to investigate further and provide you a better solution at the earliest. 
 
Please find the attached sample for the reference. 
 
Regards, 
Bharathiraja. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;