0
我把AAR文件中的綁定項目
添加v7appcompact NuGet包
- 添加v7.recycle ...塊金包
- 構建綁定項目
在VS拋出警告生成日誌和錯誤:
1>------ Rebuild All started: Project: CalendarViewDebugBinding, Configuration: Debug Any CPU ------
1>JARTOXML : Java HotSpot(TM) 64-Bit Server VM warning : ignoring option UseSplitVerifier; support was removed in 8.0
1>BINDINGSGENERATOR : warning BG8801: Invalid parameter type com.henry.calendarview.SimpleMonthView.OnDayClickListener in method ViewHolder in managed type Com.Henry.Calendarview.SimpleMonthAdapter.ViewHolder.
1>BINDINGSGENERATOR : warning BG8C00: For type Com.Henry.Calendarview.SimpleMonthAdapter, base interface com.henry.calendarview.SimpleMonthView.OnDayClickListener is invalid.
1>D:\TempApps\CalendarViewDebugBinding\CalendarViewDebugBinding\obj\Debug\generated\src\Com.Henry.Calendarview.SimpleMonthAdapter.cs(1105,86,1105,104): warning CS0114: 'SimpleMonthAdapter.OnCreateViewHolder(ViewGroup, int)' hides inherited member 'RecyclerView.Adapter.OnCreateViewHolder(ViewGroup, int)'. To make the current member override that implementation, add the override keyword. Otherwise add the new keyword.
1>D:\TempApps\CalendarViewDebugBinding\CalendarViewDebugBinding\obj\Debug\generated\src\Com.Henry.Calendarview.SimpleMonthAdapter.cs(9,23,9,41): error CS0534: 'SimpleMonthAdapter' does not implement inherited abstract member 'RecyclerView.Adapter.OnCreateViewHolder(ViewGroup, int)'
1>D:\TempApps\CalendarViewDebugBinding\CalendarViewDebugBinding\obj\Debug\generated\src\Com.Henry.Calendarview.SimpleMonthAdapter.cs(9,23,9,41): error CS0534: 'SimpleMonthAdapter' does not implement inherited abstract member 'RecyclerView.Adapter.OnBindViewHolder(RecyclerView.ViewHolder, int)'
1>D:\TempApps\CalendarViewDebugBinding\CalendarViewDebugBinding\obj\Debug\generated\src\Com.Henry.Calendarview.SimpleMonthAdapter.cs(17,95,17,124): error CS0535: 'SimpleMonthAdapter.CalendarDay' does not implement interface member 'IComparable.CompareTo(Object)'
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
所以我去GitHub的開源項目,找到類型OnDayClickListener
,發現它是在SimpleMonthView
類的接口。
那麼,如何解決這個構建警告?
這裏的AAR(名稱爲 '庫debug.aar')的文件,我把在GitHub上: The_File
,這裏是在GitHub上的開源項目: henry-newbie/CalendarView