In my case, I created a new package into my project folder which used a naming convention of a previously existing Java package. This conflict was throwing an error. After removing the package / renaming it the error went away.