fixed incompatibility with gradle 2.0.