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