Android 无法访问时代广场日历PickerView中的clearHighlightedDates()
通过gradlecompilecom.squareup:android时代广场:1.5使用。0@aarAndroid 无法访问时代广场日历PickerView中的clearHighlightedDates(),android,android-calendar,Android,Android Calendar,通过gradlecompilecom.squareup:android时代广场:1.5使用。0@aar //this works - where calendar is instance of CalendarPickerView calendar.highlightDates(higlightedDateList); //this doesn't work -- Cannot resolve 'clearHighlightedDates()' calendar.clearHighlighte
//this works - where calendar is instance of CalendarPickerView
calendar.highlightDates(higlightedDateList);
//this doesn't work -- Cannot resolve 'clearHighlightedDates()'
calendar.clearHighlightedDates();
现在我正在重新初始化日历您的导入似乎有问题。正在尝试按以下方式声明您的
CalendarPickerView
:
com.squareup.timessquare.CalendarPickerView myCalendarPickerVew;
奇怪的IDE对ClearHighlightEdates()有什么建议?该方法存在于所述类中。你一定是做错了什么,或者你可能会尝试Gradle sync(Android Studio顶部类似谷歌Chrome的图标)。是的,它确实存在于上述类别中。是的,我已经做过梯度同步了。如上所述,它仍然无法解决。我会继续尝试。既然如此,我的朋友,为什么会选择日历。highlightDates(HighlightedDatelist);工作?那么为什么
clearHighlightedDates()
会给出您无法解决的错误?等等,它会引发异常(使应用程序崩溃)还是您的IDE给了您一个错误(以及调用下面的红色下划线)?还要说明您正在使用的IDE和版本。@chaitanyad原因是什么?请提及,因为这可能会帮助他人。