我试图在Kotlin中接受vararg参数作为函数参数,并尝试将它传递给另一个具有vararg参数的函数。但是,它给了我一个编译时的错误,type mismatch: inferred type is IntArray but Int was expected。Kotlin: b(a) // type mismatch inferred type is IntArray but In
我试图从Kotlin调用一个Java方法,但是编译器找不到合适的签名。中,我只想调用这个,这对我来说是完全有效的:但是编译器说
None of the following functions, android.support.annotation.NonNull vararg args: kotlin.String!), android.support.