Android Studio Project Encoding Error

前端 未结 4 1454
旧巷少年郎
旧巷少年郎 2020-12-20 18:30

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 enco         


        
相关标签:
4条回答
  • 2020-12-20 18:56

    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

    0 讨论(0)
  • 2020-12-20 19:11

    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.

    0 讨论(0)
  • 2020-12-20 19:15

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

    0 讨论(0)
  • 2020-12-20 19:20

    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.

    0 讨论(0)
提交回复
热议问题