android.runtime.JavaProxyThrowable

System.ArgumentException: element is not of type Xamarin.Forms.View Parameter name: element at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].Xamarin.Forms.Platform.Android.IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element) [0x00011] in F:\workspace\Xamarin.Forms\Xamarin.Forms.Platform.Android\VisualElementRenderer.cs:139 at Xamarin.Forms.Platform.Android.Platform.CreateRenderer (Xamarin.Forms.VisualElement element) [0x00022] in F:\workspace\Xamarin.Forms\Xamarin.Forms.Platform.Android\Platform.cs:289 at Xamarin.Forms.Platform.Android.Platform.AddChild (Xamarin.Forms.VisualElement view, System.Boolean layout) [0x0001d] in F:\workspace\Xamarin.Forms\Xamarin.Forms.Platform.Android\Platform.cs:530 at Xamarin.Forms.Platform.Android.Platform.SetPage (Xamarin.Forms.Page newRoot) [0x000a2] in F:\workspace\Xamarin.Forms\Xamarin.Forms.Platform.Android\Platform.cs:414 at Xamarin.Forms.Platform.Android.FormsApplicationActivity.Inte


Solutions on the web55

Solution icon of stackoverflow
via Stack Overflow by dobowicz
, 6 months ago
\Xamarin.Forms.Platform.Android\Platform.cs:289 at Xamarin.Forms.Platform.Android.Platform.AddChild (Xamarin.Forms.VisualElement view, System.Boolean layout) [0x0001d] in F:\workspace\Xamarin.Forms\Xamarin.Forms.Platform.Android\Platform.cs:530 at

Solution icon of github
<b983e2994cb34ce9a45907489ffb0eb9>:0 at Xamarin.Forms.ViewExtensions+<>c__DisplayClass1_0.<FadeTo>b__1 (System.Double f, System.Boolean a) [0x00000] in <b0fc14d4e5b04749b7241d1235a68329>:0 at Xamarin.Forms.AnimationExtensions+<>c__DisplayClass13_0`1[T].<AnimateInternal

Solution icon of bugzilla
System.NullReferenceException: Object reference not set to an instance of an object. at Xamarin.Forms.Platform.Android.ListViewAdapter.GetView (System.Int32 position, Android.Views.View convertView, Android.Views.ViewGroup parent) [0x000ef] in C

Solution icon of bugzilla
via Xamarin Bugzilla by m3taz.ite, 1 month ago
:44:04.675 I/dalvikvm( 2458): at Xamarin.Forms.Platform.Android.ButtonDrawable.Reset () [0x00008] in C:\BuildAgent3\work\ca3766cfc22354a1\Xamarin.Forms.Platform.Android\Renderers

Solution icon of stackoverflow
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index at System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument

Solution icon of stackoverflow
via Stack Overflow by ShahNawaz
, 7 months ago
System.IO.IOException: Invalid parameter at System.IO.File.SetLastWriteTime (System.String path, System.DateTime lastWriteTime) [0x00030] in <500f590720b848ecadaddac3c375ddb5>:0 at AD_Forms.AD..ctor () [0x00061] in

Solution icon of github
via GitHub by Flyinmorning
, 10 months ago
<148efd2f7a03496fb40611cf5f4f0bb1>:0 10-12 14:15:29.600 E/AndroidRuntime( 5395): at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].Android.Views.View.IOnTouchListener.OnTouch (Android.Views.View v, Android.Views.MotionEvent e) [0x0004a

Solution icon of github
System.InvalidCastException: Specified cast is not valid. at (wrapper castclass) System.Object:__castclass_with_cache (object,intptr,intptr) at MvvmCross.Droid.Support.V7.AppCompat.MvxAppCompatActivity`1[TViewModel].get_ViewModel () [0x00006] in

Solution icon of github
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index at System.ThrowHelper.ThrowArgumentOutOfRangeException (ExceptionArgument argument, ExceptionResource

Solution icon of github
via GitHub by rufusl
, 6 months ago
System.NullReferenceException: Object reference not set to an instance of an object at SkiaSharp.SKSurface.Create (SkiaSharp.GRContext context, SkiaSharp.GRBackendRenderTargetDesc desc) [0x00000] in <087d0388435e4cd4ad8ad2862d6df448>:0 at

Stack trace

  • android.runtime.JavaProxyThrowable: System.ArgumentException: element is not of type Xamarin.Forms.View Parameter name: element at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].Xamarin.Forms.Platform.Android.IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element) [0x00011] in F:\workspace\Xamarin.Forms\Xamarin.Forms.Platform.Android\VisualElementRenderer.cs:139 at Xamarin.Forms.Platform.Android.Platform.CreateRenderer (Xamarin.Forms.VisualElement element) [0x00022] in F:\workspace\Xamarin.Forms\Xamarin.Forms.Platform.Android\Platform.cs:289 at Xamarin.Forms.Platform.Android.Platform.AddChild (Xamarin.Forms.VisualElement view, System.Boolean layout) [0x0001d] in F:\workspace\Xamarin.Forms\Xamarin.Forms.Platform.Android\Platform.cs:530 at Xamarin.Forms.Platform.Android.Platform.SetPage (Xamarin.Forms.Page newRoot) [0x000a2] in F:\workspace\Xamarin.Forms\Xamarin.Forms.Platform.Android\Platform.cs:414 at Xamarin.Forms.Platform.Android.FormsApplicationActivity.Inte at md59d637456c2e899bd4a90a05345a07db3.MvxFormsApplicationActivity.n_onCreate(Native Method) at md59d637456c2e899bd4a90a05345a07db3.MvxFormsApplicationActivity.onCreate(MvxFormsApplicationActivity.java:31) at android.app.Activity.performCreate(Activity.java:5231) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233) at android.app.ActivityThread.access$800(ActivityThread.java:135) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5001) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601) at dalvik.system.NativeStart.main(Native Method)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.