Android Studio : unmappable character for encoding UTF-8

前端 未结 9 1428
无人共我
无人共我 2020-11-27 13:15

After importing my project from eclipse into android studio i have got the following error :

Error: unmappable character for encoding UTF-8
<
相关标签:
9条回答
  • 2020-11-27 13:59

    If above answeres did not work, then you can try my answer because it worked for me.
    Here's what worked for me.

    1. Close Android Studio
    2. Go to C:\Usersyour username
    3. Locate the Android Studio settings directory named .AndroidStudioX.X (X.X being the version)
    4. C:\Users\my_user_name.AndroidStudio4.0\system\caches
    5. Delete the caches folder and open android studio

    This should fix the issue.

    0 讨论(0)
  • 2020-11-27 14:06

    Check all 'C' characters. There are may be some cyrillic 'C's in english-looking word.
    Reason for this is that in both english and russian keyboards 'C' occupies same physical button.

    0 讨论(0)
  • 2020-11-27 14:07

    I have the problem with encoding in javadoc generated by intellij idea. The solution is to add

    -encoding UTF-8 -docencoding utf-8 -charset utf-8
    

    into command line arguments!

    UPDATE: more information about compilation Javadoc in Intellij IDEA see in my post

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