java.lang.NoSuchMethodError: No interface method sort(Ljava/util/Comparator;) exception in sorting arraylist android

前端 未结 5 1267
青春惊慌失措
青春惊慌失措 2020-12-09 16:16

I\'m trying to sort an ArrayList in Java in Android app but I\'m getting this weird exception.

Code:

eventsList.sort(new Comparator<         


        
5条回答
  •  粉色の甜心
    2020-12-09 16:19

    Zxing?

    If you get this error in the Zxing core lib in com.google.zxing.qrcode.detector.FinderPatternFinder.selectBestPatterns you can solve it by downgrading Zxing to 3.3.x (3.3.3 currently).

    See https://github.com/zxing/zxing/issues/1170 for details.

提交回复
热议问题