System.MissingMethodException:Xamarin.Android上的MvvmCross找不到方法'Array.Empty'

时间:2016-07-18 15:52:47

标签: xamarin.android azure-devops mvvmcross azure-pipelines hockeyapp

我的应用程序在调试/发布模式下工作正常但是,一旦我尝试通过HockeyApp和VSTS进行部署,我在启动时遇到以下错误:

var JSONStr=[{"sectionTitle":"Account Information","sectionItems":[{"itemTitle":"Balance","url":"/account/balance","selected":true},{"itemTitle":"Account Statement","url":"/account/statementsearch","selected":false},{"itemTitle":"Deposit","url":"/account/deposit","selected":false},{"itemTitle":"Withdrawal","url":"/account/withdraw","selected":false},{"itemTitle":"Edit Profile","url":"/account/editprofile","selected":false},{"itemTitle":"Change Password","url":"/account/changepassword","selected":false}]}];
var result = JSONStr.where({ selected: true });

另外,我注意到如果我尝试使用以下代码:

System.MissingMethodException: Method 'Array.Empty' not found.
 at MvvmCross.Droid.Views.MvxActivityViewExtensions.OnViewCreate (IMvxAndroidView androidView, Android.OS.Bundle bundle) [0x00055] in <filename unknown>:0 
 at MvvmCross.Droid.Views.MvxActivityAdapter.EventSourceOnCreateCalled (System.Object sender, MvvmCross.Platform.Core.MvxValueEventArgs`1 eventArgs) [0x0000c] in <filename unknown>:0 
 at (wrapper delegate-invoke) System.EventHandler`1[MvvmCross.Platform.Core.MvxValueEventArgs`1[Android.OS.Bundle]]:invoke_void_object_TEventArgs (object,MvvmCross.Platform.Core.MvxValueEventArgs`1<Android.OS.Bundle>)

VSTS无法编译我的项目,但错误相同(var t = Array.Empty<object>();

0 个答案:

没有答案