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
  • 665
  • 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,387
  • 3
  • 36
  • 48
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,385
  • 4
  • 25
  • 37
0

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

Abdulla Sirajudeen
  • 1,204
  • 15
  • 28
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
  • 445
  • 5
  • 7