Under the Build Tab you should see an option to clean the project. I'm not sure why it happens, but sometimes projects get jumbled up and the system believes things are missing or not connected. If you clean and rebuild the project it should resolve the issue. Let me know if it works.