Failed to automatically compile the 'MyProjectFPS' module

It means that your class was added to your Visual studio project, but you can’t use the class into the C++ files have been compiled. You can either do that by compiling Visual studio or hitting the Compile button towards the top of the Unreal editor.

Successfully added class ‘MyCharacter’, however you must recompile the ‘MyProjectFPS’ module before it will appear in the Content Browser. Failed to automatically compile the ‘MyProjectFPS’ module.

Would you like to open the Output Log to see more details?

I am getting the above message. Can someone please suggest the solution to this?