java.lang.NoSuchMethodError: No interface method sort(Ljava/util/Comparator;) exception in sorting arraylist android
<p>I'm trying to sort an <code>ArrayList</code> in Java in Android app but I'm getting this weird exception. </p>

<p>Code:</p>

<pre><code>eventsList.sort(new Comparator&lt;Event&gt;() {
        @Override
        public int compare(Event event, Event t1) {
            return event.getEventStartDate().compareTo(t1.getEventStartDate());
        }
    });
</code></pre>

<p>Exception:</p>

<pre><code>java.lang.NoSuchMethodError: No interface method sort(Ljava/util/Comparator;)V in class Ljava/util/List; or its super classes (declaration of 'java.util.List' appears in /system/framework/core-libart.jar)
</code></pre>