Ridiculous Error on Unity 5.6.4p4 Method Name doesn't exists

I am facing a strange issue on Unity version 5.6.4p4
The code compiles and runs just perfectly fine in editor but when I build it for android I see an error message saying that my method doesn’t exists. I have checked many times but there is no such issue. I am not doing anything wrong. Can anyone suggest what could be wrong ?

The issue was that I generated my method through Visual studio tool which placed my method in editor only region of my class. That’s why it wasn’t compiling when I built for android.
Lesson Learnt: Don’t rely on auto code generation always :smiley: They put your code anywhere ! Even in places that aren’t always correct.