this is an excerpt from <https://developer.android...
# getting-started
o
this is an excerpt from https://developer.android.com/codelabs/kotlin-bootcamp-sams#1
Copy code
import kotlin.reflect.full.*

class Plant{
    fun trim(){}
    fun fertilize(){}
}

fun testAnnotations(){
    val classObj = Plant::class

    for (m in classObj.declaredMemberFunctions){
        println(m.name)
    }
}
declaredMemberFunctions
is still unrecognized
j
Did you add a Gradle dependency on
kotlin-reflect
?
o
this is in the standard library though
import line didn’t show any erorrs