- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试在我的 Xamarin Forms 应用程序中实现 XfxCardView。加载应用程序时发生异常。构建时没有错误。我不知道为什么我会收到此异常。异常(exception)是
Unhandled Exception:
System.TypeLoadException: VTable setup of type Xfx.Controls.Droid.Renderers.XfxCardViewRendererDroid failed
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:xfx="clr-namespace:Xfx;assembly=Xfx.Controls"
x:Class="ScrollerSample.Gallery" BackgroundColor="White">
<StackLayout Margin="20,0,0,0">
<Label Text="Top specialitiest" TextColor="Black" FontFamily="Bold,10" FontSize="20" />
<Grid RowSpacing="0">
<Grid.RowDefinitions >
<RowDefinition Height="*"></RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
</Grid.RowDefinitions>
<ScrollView Grid.Row="0" HorizontalOptions="FillAndExpand" Orientation="Horizontal" VerticalOptions="StartAndExpand">
<StackLayout x:Name="StackGallery" Padding="1" Orientation="Horizontal" HorizontalOptions="FillAndExpand">
</StackLayout>
</ScrollView>
<Label Grid.Row="1" Text="RESTAURANTS NEAR YOU" TextColor="#595959" HeightRequest="30"></Label>
<Label Grid.Row="2" Text="25 Restaurants finded" TextColor="#d9d9d9" HeightRequest="20"></Label>
</Grid>
<StackLayout>
<xfx:XfxCardView CornerRadius="3" Elevation="3">
<StackLayout Padding="0" Margin="0">
<Image Source="http://lorempixel.com/1024/200/abstract" HorizontalOptions="Fill" Aspect="Fill" />
<Label Text="hi judson" TextColor="Black" Margin="8"/>
</StackLayout>
</xfx:XfxCardView>
</StackLayout>
</StackLayout>
</ContentPage>
using Xfx;
namespace ScrollerSample.Droid
{
[Activity(Label = "ScrollerSample", Icon = "@drawable/icon", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)]
public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsApplicationActivity
{
protected override void OnCreate(Bundle bundle)
{
base.OnCreate(bundle);
XfxControls.Init();
global::Xamarin.Forms.Forms.Init(this, bundle);
LoadApplication(new App());
}
}
}
最佳答案
UPADTE:对我来说,这是由 Xamarin Forms Nuget 包 3.3.0.967582 -> 3.4.0.10008975 引起的。还原此包会删除异常。
这不是答案而是评论(带图片),因为我无法在评论中添加图片。
我也有这个问题。从今天开始,我更新了所有 Nugets。不确定哪个更新导致它,但这里是更新的包。
我会报告任何新的发现。
关于xamarin - 如何修复异常 System.TypeLoadException : VTable setup of type Xfx. Controls.Droid.Renderers.XfxCardViewRendererDroid 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53428212/
我尝试实现 azure 函数,但不断收到以下异常。 "TypeLoadException: Could not load type 'System.UriTemplate' from assemb
通过这个代码 module ObjectRe = type BM = A | N type Object = { Name: string Pattern: BM array
我正在编写一个 .NET 命令行应用程序,它将用户从现有数据库迁移到 aspnetdb。为了简化特定于用户的设置,我使用了 Joel Spolsky 撰写的关于 here 的配置文件类. 它在 ASP
我正在使用 Compact Framework 3.5/VS2008。我的 TypeLoadException 行为非常奇怪。以下代码抛出此错误。原因是数据库连接有问题。但是由于某些未知原因,此内部异
在我正在开发的一个简单应用程序中,我有三个相关的程序集: “MyCompany.Geography.Windows.Forms”,这是一个类库,其中包含 winforms 控件 “MyCompany.
所以我尝试将依赖项加载到我的代码中,然后我得到: TypeLoadException: Could not load type 'System.Data.SqlClient.SqlConnection
以下代码在 VS2013 和 VS2015 中编译,适用于从 2.0 到 4.6.1 的各种 .NET Framework 版本,但在执行时抛出 System.TypeLoadException: n
11 月 7 日 10:29 MST 更新 奇怪的是,如果我将属性从 ComponentModel 文件夹中移回 Common 项目的根目录,代码就可以正常工作。在为 InflowHealth.Com
这有点啰嗦,所以这里是快速版本: 为什么这会导致运行时 TypeLoadException?(编译器应该阻止我这样做吗?) interface I { void Foo(); } class
我正在编写一个 .NET 3.5 应用程序 (WinForms),它使用外部 DLL 中的类,并且每次应用程序尝试启动时我都会收到 System.TypeLoadException。 这是 VS 显示
一些背景知识:我最近从源代码 (https://github.com/ServiceStack/ServiceStack) 重新编译了 ServiceStack 库。在完成一些错误修复后,我还重新编译
当我尝试启动我的单元测试时,出现一个错误窗口: System.TypeLoadException: Method 'get_SolutionDirectory' in type 'JetBrains.
我在 Windows 应用商店应用程序中使用 Winmd(Windows 运行时组件)。当我尝试实例化在 winmd 中定义的类型时,出现以下异常: System.TypeLoadException
你能告诉我解决 System.TypeLoadException 问题的方法吗? 我的解决方案中的现有项目存在此异常,我从同一解决方案中的单元测试项目中引用了该项目。 当我运行我的单元测试时抛出这个异
我正在尝试使用以下代码将我的 Web API 连接到 MySql 数据库: public class Startup { public void ConfigureServices
我目前正在为我的公司管理一个 ASP.NET 应用程序。最近,当我尝试调试代码时遇到了 System.TypeLoadException。 确切的信息是: Inheritance security r
我在使用强类型集线器时遇到 TypeLoadException。我的界面是: public interface IClientCallback { void callback(T msg, s
我正在使用 VS2008 使用 C# 开发一个适用于 Honeywell Dolphin 6100 的应用程序,这是一款带有条码扫描器的移动数据终端,使用类似操作系统的 Windows CE 5.0。
你能否创建一个 .NET 4 版本的应用程序进行测试是老板们无辜的问题——当然! 但是在我将 Winforms 应用程序中的 27 个项目更改为 .NET 4 并重新编译后,在启动应用程序时,我得到了
在我们的 Azure 云服务中,我们使用 Mvc、WebApi 和 Autofac。 Mvc 和 WebApi 需要 System.Web.Http 版本5.2.3 Autofac.WebApi2想要
我是一名优秀的程序员,十分优秀!