Play - The import views.html.index cannot be resolved

November 30, 2015

Problem:

The import views.html.index cannot be resolved

Solution: 

Add

  • target/scala-2.11/routes/main
  • _target/scala-2.11/twirl/main _

to your project build path.
For some reason the option bellow wasn’t enough:

  • EclipseKeys.createSrc := EclipseCreateSrc.ValueSet(EclipseCreateSrc.ManagedClasses, EclipseCreateSrc.ManagedResources)