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
For Android Studio 2.2 you have To add compile option in gradle file of your project:
android { ... compileOptions { encoding "ISO-8859-1" sourceCompatibility JavaVersion.VERSION_1_7 targetCompatibility JavaVersion.VERSION_1_7 } }
Adding the following to build.gradle
solves the problem :
android {
...
compileOptions.encoding = 'ISO-8859-1'
I have encountered this problem, too. The reason for my problem is that I copy a file which is not encoded UTF-8 from Eclipse to Android Studio. A solution to this problem is that: