2015-11-30 58 views
2

Mac平臺,激活器爲1.3.6,並使用IDEA 15 CE。 我使用「activator new」創建了一個新的Play-Java項目,並且可以使用「activator compile」進行編譯。Play Framework在IDEA中編譯錯誤

但是,當我將項目導入IDEA時,選擇SBT,並且我無法創建項目。 錯誤是:

Error:(1, 1) java: package org.junit does not exist 
Error:(8, 24) java: package org.junit does not exist 
Error:(18, 6) java: cannot find symbol 
    symbol: class Test 
    location: class IntegrationTest 
Error:(23, 17) java: cannot find symbol 
    symbol: method assertTrue(boolean) 

有人能幫助我嗎?

回答

0

嘗試在你的build.sbt聲明的JUnit依賴作爲

val jUnitVersion = "4.11" // replace appropriately 

libraryDependencies ++= Seq(
// The rest of your dependencies 
"junit" % "junit" % jUnitVersion % Test 
) 

,然後嘗試sbt clean run

相關問題