vikramkakkar / SublimePicker

A material-styled android view that provisions picking of a date, time & recurrence option, all from a single user-interface.
Apache License 2.0
2.31k stars 407 forks source link

I am getting NoSuchFieldError after showing the dialog #55

Closed chrisonline closed 7 years ago

chrisonline commented 7 years ago

I have added the code as in the sample app, but have set the options to show only the recurrence picker. But after "show" I get this error: aused by: java.lang.NoSuchFieldError: No field date_picker_day_picker of type I in class Lcom/appeaser/sublimepickerlibrary/R$id; or its superclasses (declaration of 'com.appeaser.sublimepickerlibrary.R$id' appears in /data/data/com.colapps.reminder/files/instant-run/dex/slice-slice_4-classes.dex) at com.appeaser.sublimepickerlibrary.datepicker.SublimeDatePicker.initializeLayout(SublimeDatePicker.java:264)

The line who is crashing is in onCreateView in my RecurrencPickerDialogFragment: SublimePicker sublimePicker = (SublimePicker) getActivity().getLayoutInflater() .inflate(R.layout.sublime_picker, container);

What do I miss?

chrisonline commented 7 years ago

Fixed: The problem was that I use the 'com.github.jaydeep17:datetimepicker:0.0.4' too. If I compile the SublimeDatePicker BEFORE the DateTimePicker it works. The DateTimePicker from jaydeep doesn't have this field in the layout.