gpt4 book ai didi

android - 在 android 中得到 System.InvalidOperationException

转载 作者:行者123 更新时间:2023-11-29 15:47:39 25 4
gpt4 key购买 nike

如何避免

You MUST call Xamarin.Forms.Init(); prior to using it

android 中的异常?应用程序在启动后最初崩溃。

最佳答案

Forms.Init() 被调用,应用程序抛出此异常

System.InvalidOperationException: You MUST call Xamarin.Forms.Init();

之前使用它。

#Code Snippet

protected override void OnCreate(Bundle bundle)
{
base.OnCreate(bundle);
global::Xamarin.Forms.Forms.Init(this, bundle);
LoadApplication(new App()); // Exception happens here
}

click here to detail

关于android - 在 android 中得到 System.InvalidOperationException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32086935/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com