簡體   English   中英

Xamarin.Forms iOS 構建錯誤 Object 引用未設置為 object 的實例

[英]Xamarin.Forms iOS build error Object reference not set to an instance of an object

我目前在我的 PC 中使用 VS 2019 創建了一個新的 Xamarin.Forms 項目,安裝了一些 nuget 包,在構建項目后,我從 iOS 項目中得到以下錯誤。

.nuget\packages\xamarin.build.download\0.10.0\buildTransitive\Xamarin.Build.Download.targets(52,3):錯誤:Object 引用未設置為 object 的實例。

我檢查了附加到我的 PC 上的 repo 文件夾的錯誤日志文件,我看到了錯誤:

Date:2021-07-02 07:10:23,580
Thread:[1]
Level:ERROR
Logger:Syncfusion.Xamarin.UI.MainViewModel                         [(null)]
Message:System.NullReferenceException: Object reference not set to an instance of an object.
   at Syncfusion.Xamarin.UI.MainWindow.ItemCheckBox_Unchecked(Object sender, RoutedEventArgs e)

此外,我做了很多構建、重建、清理解決方案、恢復 nuget,我不得不卸載 nuget 軟件包的預發布版本並安裝最新的穩定版本,但沒有任何改變。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM