統一設置爲UTF8編碼在工程的根目錄下的build.gradle文件中,添加定義。tasks. withType(JavaCompile) { options.encoding = "UTF-8"}gradle
如圖:ui