That looks like a build error not related to your code. Things to try:
- Do a cloud compile targeting 5.0.0, that will determine if your code compiles correctly
- Do a Clean Application & Device OS
- Follow the Workbench bug report steps to get information about your environment