scala.reflect.internal.FatalError: package scala does not have a member Int

前端 未结 2 975
猫巷女王i
猫巷女王i 2021-01-02 13:15

I am currently working on a project using Scala and Play Framework 2. I want to compile some Scala code during runtime and get the result from the interpreter. I found some

2条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-02 14:04

    I have fixed this problem by specifying scala-maven-plugin

    I was using Scala 2.11.x and if you dont specify any version in scala-maven-plugin by default it goes with latest version which 4.4.0

    Then i changed my scala-maven-plugin to 3.2.2 and it works fine.

提交回复
热议问题