0

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 constto 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.

enter image description here

Hasan Mhd Amin
  • 220
  • 2
  • 11

0 Answers0