I have a problem with gradle. it was working fine but all of sudden when I was rebuilding the project it gives me this error:
Error:Failed to resolve
I try many but only this decoration help me to sync the Gradle, Hope this one help yours
repositories { mavenLocal() google() jcenter() }
And actually add this line to defaultConfig of app module :
vectorDrawables.useSupportLibrary = true