question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

System.TypeLoadException: VTable setup of type XF.Material.Forms.UI.MaterialButton failed

See original GitHub issue

Describe the bug I honestly dont know where this error came from but it all happened when i was preparing an app for production. Doing the steps: Setting the build option to release mode etc. It throws this error System.TypeLoadException: VTable setup of type XF.Material.Forms.UI.MaterialButton failed I have AppCenter logging my crashes and the error it reports is: xxxx.Views.Audio.xxxxx.DetailsPage..ctor (Testing.Models.Audio audio) [0x00008] in <dd419e9e473f46438506fd55f81978c1>:0 AudioPage+<AudioListView_OnItemTapped>d__5.MoveNext () AsyncMethodBuilderCore+<>c.<ThrowAsync>b__6_0 (System.Object state) SyncContext+<>c__DisplayClass2_0.<Post>b__0 () Thread+RunnableImplementor.Run () IRunnableInvoker.n_Run (System.IntPtr jnienv, System.IntPtr native__this) (wrapper dynamic-method) System.Object.51(intptr,intptr)

To Reproduce Steps to reproduce the behavior:

  1. Download latest plugin version
  2. Set build action to release mode

Expected behavior App will crash and display System.TypeLoadException: VTable setup of type XF.Material.Forms.UI.MaterialButton failed

Desktop (please complete the following information):

  • OS: Mac OS Mojave
  • Browser Firefox

Smartphone (please complete the following information):

  • Device: Honor 6x
  • OS: Android Pie 9.0
  • Browser stock browser
  • Version 9.0

Additional context To by pass this bug, i downgrade the version of this plugin to v1.3.0.5. This version was the last stable version for me hence thats why i downgraded to it.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:15

github_iconTop GitHub Comments

1reaction
contrix09commented, Feb 25, 2019

You can track the issue here.

1reaction
AnthonyLattycommented, Feb 20, 2019

When i am updating the application again i will test the new version of this plugin, as i stated i downgraded the version of the plugin. I cant give a valid response if its working or not until i do a next update in the future.

Read more comments on GitHub >

github_iconTop Results From Across the Web

VTable setup of type XF.Material.Forms.UI.MaterialButton ...
App will crash and display System.TypeLoadException: VTable setup of type XF.Material.Forms.UI.MaterialButton failed.
Read more >
System.TypeLoadException: 'VTable setup of type Xamarin ...
When I get the following type of error: VTable setup of Type ??? failed. I've found that the cause is multiple versions of...
Read more >
TypeLoadException AccessibilityDelegateCompat with ...
This exception occurs when using Telerik UI for Xamarin 2021.2.615.1 version and below. ... TypeLoadException: 'Message=VTable setup of type Telerik.
Read more >
Multiple inheritance vtable issue in xamarin
System.TypeLoadException: Parent class vtable failed to initialize, due to: VTable setup of type Risersoft.Framework.Global.clsXamAppExtendBase failed ...
Read more >
System.TypeLoadException when using ListView
Material package to 1.2.1.1 version, the exception still occurred with my project. So I am revert back to Xamarin.Forms 4.8.0.1821, Telerik UI ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found