Android Studio - “Unmappable character for encoding UTF-8”

后端 未结 3 1562
野趣味
野趣味 2021-02-05 11:15

All was working fine and dandy with Eclipse in Windows until I switched to Mac OS X Yosemite, using Android Studio V1.0. I imported the project as a Non-Android Studio project s

3条回答
  •  忘掉有多难
    2021-02-05 11:39

    Adding the following to build.gradle solves the problem :

    android {
        ...
        compileOptions.encoding = 'ISO-8859-1'
    

提交回复
热议问题