我正在尝试使用:
cards.sortedWith(compareBy(String.CASE_INSENSITIVE_ORDER) { it.rarity })
它抛出一个:
java.lang.ClassNotFoundException: Didn't find class
file "/data/app/com.example.well.clashroyaleguide-s3TV3daRKxWLNuuDx9eeoA==/base.apk", zip file "/data/app/
com.example.well.clashroyaleguide-s3TV3daRKxWLNuuDx9eeoA==/split_lib_dependencies_apk.apk", zip file "/data/app/
com.example.well.clashroyaleguide-s3TV3daRKxWLNuuDx9eeoA==/split_lib_resources_apk.apk", zip file "/data/app/
com.example.well.clashroyaleguide-s3TV3daRKxWLNuuDx9eeoA==/split_lib_slice_0_apk.apk", zip file "/data/app/
com.example.well.clashroyaleguide-s3TV3daRKxWLNuuDx9eeoA==/split_lib_slice_1_apk.apk", zip file "/data/app/
com.example.well.clashroyaleguide-s3TV3daRKxWLNuuDx9eeoA==/split_lib_slice_...9_apk.apk", zip file "/data/app/
,nativeLibraryDirectories=[/data/app/com.example.well.clashroyaleguide-s3TV3daRKxWLNuuDx9eeoA==/lib/x86, /system/lib, /vendor/lib]]
任何排序和比较方法都在发生这种情况。 我尝试搜索类似的问题,但没有任何帮助。