7

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?

chiru
  • 635
  • 1
  • 7
  • 14

4 Answers4

13

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.

Bidhan
  • 10,607
  • 3
  • 39
  • 50
9

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

Asim Roy
  • 9,915
  • 4
  • 28
  • 40
0

Make Sure All Encoding are UTF-8, Which Means IDE, Project and Default

Abdulla Sirajudeen
  • 1,269
  • 1
  • 16
  • 29
0

Close your Android Studio projects

Now Goto "C:\Users.AndroidStudio3.5\System in that folder remove caches folder.

Now Open Android studio and Sync your projects.

Phani varma
  • 475
  • 5
  • 7