While working, I encountered this error. The error is mentioned in the image below:
And the compilation log had the following error:
I was able to solve the error by carrying out the outlined steps:
1.Restart AOS Service
2.Generate Full CIL
In case, you do not have enough time for the Full compilation, go the error log and recompile the objects mentioned in the error message.