Adding the following to build.gradlesolves the problem :android {... compileOptions.encoding ='UTF-8'