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

No constructor found for Xamarin.Forms.Platform.Android.ScrollViewRenderer::.ctor

$
0
0

On Android 4.4.2 sometimes I get:

Caused by: md52ce486a14f4bcd95899665e9d932190b.JavaProxyThrowable: System.NotSupportedException: Unable to activate instance of type Xamarin.Forms.Platform.Android.ScrollViewRenderer from native handle 3870001d ---> System.MissingMethodException: No constructor found for Xamarin.Forms.Platform.Android.ScrollViewRenderer::.ctor(System.IntPtr, Android.Runtime.JniHandleOwnership) ---> Java.Interop.JavaLocationException: Exception of type 'Java.Interop.JavaLocationException' was thrown.
Java.Lang.Error: Exception of type 'Java.Lang.Error' was thrown.

These seems to happen only after an update to the app.
What is interesting is that seems to be happening when we are trying to destroy a view:

at md5530bd51e982e6e7b340b73e88efe666e.ScrollViewRenderer.n_onDetachedFromWindow(Native Method)
    at md5530bd51e982e6e7b340b73e88efe666e.ScrollViewRenderer.onDetachedFromWindow(ScrollViewRenderer.java:80)
    at android.view.View.dispatchDetachedFromWindow(View.java:12787)
    at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:2706)
    at android.view.ViewGroup.removeAllViewsInLayout(ViewGroup.java:4254)
    at android.view.ViewGroup.removeAllViews(ViewGroup.java:4186)
    at md5fb436084bbd4c8599b985da0bb24bd53.XFormsApplicationDroid.n_onDestroy(Native Method)
    at md5fb436084bbd4c8599b985da0bb24bd53.XFormsApplicationDroid.onDestroy(XFormsApplicationDroid.java:33)
    at android.app.Activity.performDestroy(Activity.java:5436)
    at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1119)
    at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3676)
    at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:3707)
    at android.app.ActivityThread.access$1400(ActivityThread.java:151)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1374)
...

Viewing all articles
Browse latest Browse all 77050

Trending Articles



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