Kwok Wong
12/01/2023, 5:45 PMpackage com.test.test
fun test() {
// Do some stuff
}
How can I call the function test() using Kotlin reflectionhho
12/01/2023, 7:12 PMClass.forName("com.test.test.TestKt").getDeclaredMethod("test").invoke(null);
The TestKt
comes from your filenameKwok Wong
12/02/2023, 9:16 AM