I used gradle build command in Centos 7 terminal and I got output:
FAILURE: Build failed with an exception. * What we
You Just Have to Run it under the super user (sudo ....) it works for me