This process worked for me:
- go into [File -> Project Structure -> Modules -> [YourAppModule] -> Sources Tab]
- navigate to the "target/scala-[version]/src_managed" directory (panel on the right).
- Right click the "main" directory and flag it as a source folder.
- Right click "controllers" and "views" and remove the "sources" flag (you should see the controllers and views folder become package directories).
- Apply -> OK -> recompile.
from https://github.com/playframework/playframework/issues/1784#issuecomment-26345523