intellij "object index is not a member of package views.html"
<p>I've got Intellij 15.0.5 and I cannot get rid of this error</p>

<pre><code>object index is not a member of package views.
</code></pre>

<p>I've created a new play project in Intellij and also using the activator command</p>

<pre><code>activator new PlayTestProject
</code></pre>

<p>But I keep getting the above error. I've read all the other similar question on SO but none of them helped and I've tried the following</p>

<ol>
<li>Right click the project -> Add framework support -> select "Play 2"</li>
</ol>

<p>Result: I didn't see any change to my project. When I hit OK, the window disappears but if I try the same the second time. Nothing happens and the window is still there!</p>

<ol start="2">
<li>Preferences -> Languages &amp; Frameworks -> Play2 -> select "Use Play 2 compiler for this project"</li>
</ol>

<p>Result: I get this error</p>

<pre><code>Error:Module 'client' production: java.lang.NullPointerException
</code></pre>

<p>I've tried </p>

<ul>
<li>invalidate cache &amp; restart </li>
<li>sbt clean</li>
<li>checkout a fresh new project</li>
</ul>

<p>But I keep getting the same error in Intellij.</p>

<p>Running <code>sbt compile</code> on command line runs the build successful. But Intellij keeps shows me the above error.</p>

<p>How do I fix this ?</p>