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. Image for the cookie policy date
close icon

Error on Android

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!

5 Replies

BK Bharathiraja K Syncfusion Team 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. 



EM Emil 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


BK Bharathiraja K Syncfusion Team 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.  



RA RODRIGO AMARAL 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


BK Bharathiraja K Syncfusion Team 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. 


Loader.
Live Chat Icon For mobile
Up arrow icon