If you are not able to run the project because you are getting error after an update of Android Gradle plugin in Android Studio.
Here I am giving you the complete solution. Please see below mention steps.
In your gradle file, use new dependency in configurations
Step-1: Go to the build.gradle(module app)
Step-2: Replace compile...