Android Studio 项目编码错误 [英] Android Studio Project Encoding Error

查看:24
本文介绍了Android Studio 项目编码错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每次我开始一个新项目时,gradle 完成后都会向我显示这个警告.

Every time when i start a new project, after gradle finishes it shows this warning to me.

Warning:The project encoding (windows-1252) does not match the encoding specified in the Gradle build files (UTF-8). This can lead to serious bugs.

有人知道如何解决这个问题吗?

Is anyone know how to overcome this issue?

推荐答案

当您收到该警告时,单击打开文件编码设置".然后从选择框中将 IDE Encoding 和 Project Encoding 更改为 UTF-8.您还可以在设置菜单底部更改默认编码.

When you get that warning, click on Open File Encoding Settings. Then change both IDE Encoding and Project Encoding to UTF-8 from the select box. You can also change the default encoding at the bottom of the settings menu.

这篇关于Android Studio 项目编码错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆