Xamarin形成listview内部listview仅在Android中崩溃

时间:2018-10-26 11:28:26

标签: listview xamarin xamarin.forms

在我的情况下,我在另一个列表视图中添加了一个列表视图,数据的绑定没有任何问题,但是当我尝试滚动列表项时,出现了此异常

Unable to activate instance of type Xamarin.Forms.Platform.Android.ListViewAdapter from native handle 0xbf82c28c (key_handle 0x29208f0e).

内部异常显示

{System.MissingMethodException: No constructor found for Xamarin.Forms.Platform.Android.ListViewAdapter::.ctor(System.IntPtr, Android.Runtime.JniHandleOwnership) ---> Java.Interop.JavaLocationException: Exception of type 'Java.Interop.JavaLocationException' was thrown.
       --- End of inner exception stack trace ---
      at Java.Interop.TypeManager.CreateProxy (System.Type type, System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer) [0x00054] in <263adecfa58f4c449f1ff56156d886fd>:0 
      at Java.Interop.TypeManager.CreateInstance (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer, System.Type targetType) [0x00111] in <263adecfa58f4c449f1ff56156d886fd>:0 }

我正在使用Xamarin 3.3.0和Android版本7.1

我想要一些解决方法。如何解决?

0 个答案:

没有答案