Android 0日期选择器问题

时间:2017-10-30 17:48:14

标签: android datepicker

使用android O Api 26编译我的应用程序时,日期选择器中存在问题 当我将最大日期设置为特定日期,如果选择相同的最大日期,则会崩溃。可以提供任何帮助吗?

E / MessageQueue-JNI:java.lang.IllegalArgumentException:timeInMillis必须介于getMinDate()和getMaxDate()的值之间                                                                  在android.widget.DayPickerView.setDate(DayPickerView.java:307)                                                                  在android.widget.DayPickerView.setDate(DayPickerView.java:286)                                                                  在android.widget.DayPickerView.setDate(DayPickerView.java:275)                                                                  在android.widget.DatePickerCalendarDelegate.onDateChanged(DatePickerCalendarDelegate.java:405)                                                                  在android.widget.DatePickerCalendarDelegate.init(DatePickerCalendarDelegate.java:376)                                                                  在android.widget.DatePicker.init(DatePicker.java:228)                                                                  在android.app.DatePickerDialog.onDateChanged(DatePickerDialog.java:151)                                                                  在android.widget.DatePickerCalendarDelegate.onDateChanged(DatePickerCalendarDelegate.java:398)                                                                  在android.widget.DatePickerCalendarDelegate.-wrap0(未知来源:0)                                                                  在android.widget.DatePickerCalendarDelegate $ 1.onDaySelected(DatePickerCalendarDelegate.java:239)                                                                  在android.widget.DayPickerView $ 3.onDaySelected(DayPickerView.java:178)                                                                  在android.widget.DayPickerPagerAdapter $ 1.onDayClick(DayPickerPagerAdapter.java:321)                                                                  在android.widget.SimpleMonthView.onDayClicked(SimpleMonthView.java:1021)                                                                  在android.widget.SimpleMonthView.onTouchEvent(SimpleMonthView.java:371)                                                                  在android.view.View.dispatchTouchEvent(View.java:11333)                                                                  在android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2933)

0 个答案:

没有答案