Error:scalac: IO error while decoding PackageOps.scala with UTF-8 Please try specifying another one

IDEA编码错误

Error:scalac: IO error while decoding D:\Develop\Scala\IntelliJ IDEA Projects\scalaProjects\src\kmust\hjr\learningScala16\PackageOps.scala with UTF-8
Please try specifying another one using the -encoding option

解决办法

  1. 修改IDEA的配置文件
  2. File–>Settings
  3. 找到Editor->FileEncoding
  4. 将IDE Encoding和Project Encoding都设置为UTF-8

Error:scalac: IO error while decoding PackageOps.scala with UTF-8 Please try specifying another one_第1张图片

妥!

附录:

IntellijIDEA14.1.4Scala开发环境搭建

希望对大家有用

你可能感兴趣的:(Spark,错误记录,Scala,云计算)