Adding the following to ​​build.gradle​​solves the problem :​

android {...
compileOptions.encoding ='UTF-8'