[Bug] System.TypeLoadException: Parent class vtable failed to initialize, due to: VTable setup of type AndroidX.SwipeRefreshLayout.Widget.SwipeRefreshLayout #14424

 

Ended  up having to install

Xamarin.AndroidX.AppCompat.AppCompatResources (version 1.3.0)

and downgrading

Xamarin.AndroidX.Core from version 1.6.0 to 1.5.0

 it began after updating to Xamarin Forms 5.0.0.2083 which required AndroidX.Core

Not sure if it'll help with your problem exactly but those steps fixed it .


OR


downgrading Xamarin.AndroidX.Core from version 1.6.0 to 1.5.0 resolved  issue.


OR


Do you think this is fixed with the new AndroidX.Core 1.6.0.1 ?

                                                                                       OR


Updating to 1.6.0.1 didn't work for us as well but we have 2 workarounds for this.

Skip linking for Xamarin.AndroidX.Core
Put this <AndroidLinkSkip>Xamarin.AndroidX.Core</AndroidLinkSkip> in *.Droid.csproj
or
image

Alternatively
Install "Xamarin.Google.Android.Material" and "Xamarin.AndroidX.SwipeRefreshLayout" directly in your *.Droid project

We picked the first solution, mainly because this is a workaround and using "Skip linking assemblies" will raise questions if we forget about it.
Where adding 2 packages as a workaround probably will get unnoticed and they will stay there forever.
At some point this issue will be fixed in the Xamarin.AndroidX.Core package and this workaround should be removed.




OR


Second update, even installing both nugets and adding <AndroidLinkSkip>Xamarin.AndroidX.Core</AndroidLinkSkip>, the exception still comes up.
However now with this message.

Parent class vtable failed to initialize, due to: VTable setup of type AndroidX.CoordinatorLayout.Widget.CoordinatorLayout failed assembly:Xamarin.AndroidX.CoordinatorLayout.dll type:CoordinatorLayout member:(null)

So same error, for another control. So I also installed Xamarin.AndroidX.CoordinatorLayout. Now it seems to start.




OR


update XF to 5.0.0.2012, Xamarin.AndroidX.SwipeRefreshLayout to 1.1.0.5 and Xamarin.AndroidX.RecyclerView to 1.2.1.3, problem solved




OR







Comments

Popular posts from this blog

How to authenticate mobile number in android studio

How to connect android project to Firebase

How to create a new activity in existing android project in android studio

How to Create a Custom menu in android studio

How to create android project in android studio

How to add(Part-2) Video in FirebaseRecyclerAdapter in android studio

How to download google-services.json file from firebase

How to Add Like,Dislike button in video in android studio

How to create Layout Resource File in existing project in android studio

How to add Video(Part-1) in FirebaseRecyclerAdapter from Galllary..