Error(1,1)illegalcharacter '\ufeff' when compiling on android studio

后端 未结 15 1713
旧巷少年郎
旧巷少年郎 2020-12-14 05:50

I got an Eclipse project source code(I was told that on Android Studio, maybe they just confused), and I start to migrating the code to android studio refers to

15条回答
  •  庸人自扰
    2020-12-14 06:35

    At bottom right of the project change file encoding UTF-8 to UTF-16.

    1. A new dialog will get open. Select convert it and run it.
    2. It will give you some errors then again change UTF-16 to UTF-8.
    3. Convert it and run the project. This time your project will run successfully.

提交回复
热议问题