zoukankan      html  css  js  c++  java
  • 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:UserslxsIdeaProjectsOSHWMonitorsrcmainscalacomxdjaappsDealKafkaData.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,删除即可

    <?xml version="1.0" encoding="UTF-8"?>
    <project version="4">
    <component name="Encoding" defaultCharsetForPropertiesFiles="UTF-8">
    <file url="file://$PROJECT_DIR$" charset="UTF-8" />
    <file url="file://$PROJECT_DIR$/src/test/scala/Demo1.java" charset="GBK" />
    <file url="PROJECT" charset="UTF-8" />
    </component>
    </project>

    改为

    <?xml version="1.0" encoding="UTF-8"?>
    <project version="4">
    <component name="Encoding" defaultCharsetForPropertiesFiles="UTF-8">
    <file url="file://$PROJECT_DIR$"/>
    <file url="PROJECT"/>
    </component>
    </project>


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

  • 相关阅读:
    使用CXF开发Web Service服务
    IT成长中的龟兔赛跑
    IT成长中的龟兔赛跑
    什么是共识算法
    python字节序列
    数据分析必备的统计学(二):假设检验
    以太坊Casper 与 分片
    以太坊君士坦丁堡(Constantinople)升级公告
    以太坊基金会:前路,2018
    以太坊团队·2017年第四季度总结
  • 原文地址:https://www.cnblogs.com/idvcn/p/9088466.html
Copyright © 2011-2022 走看看