IDEA 进行编译代码的时候,报错误Error:scalac: IO error while decoding .* with GBK

IDEA 进行编译代码的时候,报错误Error:scalac: IO error while decoding .* with GBK

Information:java: Multiple encodings set for module chunk OSHWMonitor
"GBK" will be used by compiler
Information:2018/5/25 14:11 - Compilation completed with 10 errors and 0 warnings in 8s 543ms
Error:scalac: IO error while decoding C:\Users\lxs\IdeaProjects\OSHWMonitor\src\main\scala\com\xdja\apps\DealKafkaData.scala with GBK
Please try specifying another one using the -encoding option
Information:2018/5/25 14:11 - Compilation completed with 10 errors and 0 warnings in 8s 543ms

检查.idea/encodings.xml是否对某些类指定了charset,删除即可

 








改为








另外,File->Project Structure->Modules->Sources
Excluded掉不需要的打包文件夹

转载于:https://www.cnblogs.com/idvcn/p/9088466.html

你可能感兴趣的:(IDEA 进行编译代码的时候,报错误Error:scalac: IO error while decoding .* with GBK)