Error coding Android Studio project

Every time 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. 

Does anyone know how to overcome this problem?

+7
android android-studio
source share
3 answers

When you receive this warning, click "Open file encoding options." Then change the IDE encoding and the project encoding to UTF-8 in the selection box. You can also change the default encoding at the bottom of the settings menu.

+13
source share

In your Android Studio, go to File → Settings → Editor → File Encodings

And then set the IDE Encoding, Project Encoding and default encoding for the properties file in UTF-8, as shown in the figure below.

enter image description here

+9
source share

Make sure all encodings are UTF-8 which means IDE, project and default value

0
source share

All Articles