Fixed a bug : build threw an exception after "gradlew clean".