后
我把aar文件放在绑定项目中
添加v7appcompact nuget包
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
类中的一个接口。
那么,如何修复此构建警告?
这里是我放入GitHub的aar(名称是' library-debug.aar')文件: The_File
这是GitHub中的源项目: henry-newbie/CalendarView