I have modified my Android Studio live templates to write the log directly from class name as following, but I am getting this warning message.
How can I avoid it. Also, if I add const
to the decleration I get another error:
Const 'val' initializer should be a constant value
Is there anyway that I can use SomeName::class.java.simpleName
without getting any warning or error? I prefer this that writing hard-coded class name as a string.