Error:(10, 30) could not find implicit value for evidence parameter of type org.apache.flink.api.com

Error:(10, 30) could not find implicit value for evidence parameter of type org.apache.flink.api.common.typeinfo.TypeInformation[example.Main.Point]
    val ds = env.fromElements(Point(1, 2), Point(3, 4), Point(5, 6))

写了一个简单示例,但是报了以上的错误 

代码如下

Error:(10, 30) could not find implicit value for evidence parameter of type org.apache.flink.api.com

错误如下

Error:(10, 30) not enough arguments for method fromElements: (implicit evidence$14: scala.reflect.ClassTag[example.Main.Point], implicit evidence$15: org.apache.flink.api.common.typeinfo.TypeInformation[example.Main.Point])org.apache.flink.api.scala.DataSet[example.Main.Point].
Unspecified value parameter evidence$15.
    val ds = env.fromElements(Point(1, 2), Point(3, 4), Point(5, 6))
Error:(10, 30) could not find implicit value for evidence parameter of type org.apache.flink.api.common.typeinfo.TypeInformation[example.Main.Point]
    val ds = env.fromElements(Point(1, 2), Point(3, 4), Point(5, 6))

Error:(10, 30) could not find implicit value for evidence parameter of type org.apache.flink.api.com

解决方式

import org.apache.flink.api.scala._

Error:(10, 30) could not find implicit value for evidence parameter of type org.apache.flink.api.com

参考文章

https://blog.csdn.net/xiaozhaoshigedasb/article/details/86645674