使用sbt工具创建了一个新项目。我将项目导入Intellij。然后,当我尝试添加插件PlayEbean时,出现此错误:
error: error while loading String, class file '/modules/java.base/java/lang/String.class' is broken.
这是整个错误,有点长了,所以我不想在这里https://pastebin.com/embed_js/ekPN4nFv
有人知道我该怎么做才能解决此问题?
这是plugins.sbt文件:
// The Play plugin
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.7.3")
// Defines scaffolding (found under .g8 folder)
// http://www.foundweekends.org/giter8/scaffolding.html
// sbt "g8Scaffold form"
addSbtPlugin("org.foundweekends.giter8" % "sbt-giter8-scaffold" % "0.11.0")
addSbtPlugin("com.typesafe.sbt" % "sbt-play-ebean" % "5.0.0")
这是build.sbt文件:
name := """consulting-services-inc"""
organization := "com.myName"
version := "1.0-SNAPSHOT"
lazy val root = (project in file(".")).enablePlugins(PlayJava,PlayEbean)
scalaVersion := "2.13.0"
libraryDependencies += guice
libraryDependencies += javaCore
答案 0 :(得分:0)
看起来版本不匹配。
5.0.2应该与scala 2.13兼容,而5.0.0显然不能。
选中https://mvnrepository.com/artifact/com.typesafe.play/play-ebean