Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio Project Encoding Error

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?

like image 390
chiru Avatar asked May 15 '15 07:05

chiru


2 Answers

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.

like image 197
Bidhan Avatar answered Oct 14 '22 08:10

Bidhan


In your Android Studio open File >> Settings >> Editor >> File Encodings

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

enter image description here

like image 20
Asim Roy Avatar answered Oct 14 '22 08:10

Asim Roy