Kotlin Exception - 'kotlin.Result' cannot be used as a return type

当我们使用 Result 类型时,IDE 会警告 `kotlin.Result` cannot be used as a return type,这是什么原因呢?

Kotlin Exception - NoSuchElementException: Collection contains no element matching the predicate

FATAL EXCEPTION: main Process: cn.itmob.demo, PID: 3224 java.util.NoSuchElementException: Expected at least one element
Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×