could not execute build using Gradle installation <gradle directory>

When I want to add play-sevices-locations-15.0.0.aar to my android project in android studio, error message below appears. How can I resolve it? regards.

enter image description here