Android Studio中文注释提示编码问题,Gradle: 警告:编码 GBK 的不可映射字符的方法...

在项目build.gradle文件内加入一下代码即可解决

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

原文地址:https://www.cnblogs.com/xxdotnet/p/4366074.html