In java, I am able to use getClass() and then retrieve simpleName from that class object without any issues.
String tag = someObject.getClass().getSimpleName(); // java code
But when converting to Kotlin, this causes warnings
Call uses reflection API which is not found in compilation classpath. Make sure you have kotlin-reflect.jar in the classpath
The kotlin code is
someObject::class.simpleName!! // kotlin code
What is the proper way of avoiding
kotlin.jvm.KotlinReflectionNotSupportedError ? Needs additional dependency to kotlin-reflect.jar. Maybe would be better use ::class.java.simpleName