Android API below 24 Throws java.lang.NoSuchMethodError
See original GitHub issueHello guys. First I want to thank you for this great library!
I’m building a mobile app with heavy cron manipulation and this library has helped a ton, doing all the parsing automatically. The library works great on android 6+ (using release 6.0.5 since I need to support Android versions 4.2+)
However, on android 4 and 5, the CronParser throws an exception in the constructor when calling buildPossibleExpressions(cronDefinition);
due to the fact that in Android API below 24 the method List.sort()
does not exist. Is there any version fo the library that works with API below 24, or I should download the library and manually make some changes to get it up and running on older android versions? Thank you!
P.S.: If you need a stack trace let me know, but the crash is really simple. The constructor crashes when calling sortedExpression.sort(CronParserField.createFieldTypeComparator());
because the sort method was added after android API 24.
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (4 by maintainers)
Top GitHub Comments
I submitted PR #326 to get started on fixing this issue.
@L4grange Thanks! If you send us a PR, we will be glad to perform a release with it! Thank you for the update! 😄