alexrainman / CarouselView

CarouselView control for Xamarin Forms
MIT License
436 stars 178 forks source link

[Bug]Urgent: Unable to convert instance of type 'Com.ViewPagerIndicator.CirclePageIndicator_Fix' to type 'Com.ViewPagerIndicator.CirclePageIndicator #569

Closed dalton5 closed 4 years ago

dalton5 commented 4 years ago

Hi,

We are developing Xamarin Forms application with the CarouselView.

With the last version of VS 2019 and Xamarin Forms we have the error:

Unable to convert instance of type 'Com.ViewPagerIndicator.CirclePageIndicator_Fix' to type 'Com.ViewPagerIndicator.CirclePageIndicator'.

How can we fix it?

Stacktrace:

at Java.Interop.JavaObjectExtensions.CastClass (Android.Runtime.IJavaObject instance, System.Type resultType) [0x0005d] in <4ccdb3137d974856b786e1aeebbfbab6>:0 at Java.Interop.JavaObjectExtensions._JavaCast[TResult] (Android.Runtime.IJavaObject instance) [0x0002f] in <4ccdb3137d974856b786e1aeebbfbab6>:0 at Java.Interop.JavaObjectExtensions.JavaCast[TResult] (Android.Runtime.IJavaObject instance) [0x00000] in <4ccdb3137d974856b786e1aeebbfbab6>:0 at Android.Runtime.Extensions.JavaCast[TResult] (Android.Runtime.IJavaObject instance) [0x00000] in <4ccdb3137d974856b786e1aeebbfbab6>:0 at Android.Views.View.FindViewById[T] (System.Int32 id) [0x00007] in <4ccdb3137d974856b786e1aeebbfbab6>:0 at CarouselView.FormsPlugin.Android.CarouselViewRenderer.SetNativeView () [0x00152] in <892bb6a09e5d43ddbe9591d58bbf4c0e>:0 at CarouselView.FormsPlugin.Android.CarouselViewRenderer.Element_SizeChanged (System.Object sender, System.EventArgs e) [0x00036] in <892bb6a09e5d43ddbe9591d58bbf4c0e>:0 at CarouselView.FormsPlugin.Android.CarouselViewRenderer.OnAttachedToWindow () [0x0000f] in <892bb6a09e5d43ddbe9591d58bbf4c0e>:0 at Android.Views.View.n_OnAttachedToWindow (System.IntPtr jnienv, System.IntPtr native__this) [0x00009] in <4ccdb3137d974856b786e1aeebbfbab6>:0 at (wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.42(intptr,intpt

dalton5 commented 4 years ago

Error