美文网首页
android studio 错误: 编码GBK的不可映射字符

android studio 错误: 编码GBK的不可映射字符

作者: Bfmall | 来源:发表于2022-08-14 19:07 被阅读0次

    如果在AS编译中出现“编码GBK的不可映射字符”错误提示
    在所在模块的build.gradle中加入如下即可:

    tasks.withType(JavaCompile) {
        options.encoding = "UTF-8"
    }
    

    相关文章

      网友评论

          本文标题:android studio 错误: 编码GBK的不可映射字符

          本文链接:https://www.haomeiwen.com/subject/cmkfgrtx.html