Intellij IDEA can not resolve symbol with Play framework

前端 未结 7 1312
太阳男子
太阳男子 2020-12-03 02:58

I am using IDEA 13 with Play 2.2.1 and was doing the examples on the play site.

public static Result index() {
   return redirect(routes.Application.tasks())         


        
相关标签:
7条回答
  • 2020-12-03 03:33

    I had a similar problem - IDEA could not resolve Play! framework dependencies.

    In my case there was a problem with .idea folder. I copied project to separate folder and run "activator idea" command in the copied project root folder. Then I compared .idea folders in original project and copied project - there I found a difference! In copied project in folder .idea/libraries there were lots of XML files containing links to dependencies, so I copied them to the same folder to original project, re-indexed project and everything works perfect from that moment :) I did it like this because I didnt want to loose my project settings (deleting .idea folder and run command "activator idea" in original project folder should resolve the problem, but settings for project would be lost).

    Hope this helps somehow :).

    0 讨论(0)
提交回复
热议问题