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
Add vectorDrawables.useSupportLibrary = true in defaultConfig
vectorDrawables.useSupportLibrary = true
defaultConfig { vectorDrawables.useSupportLibrary = true }
If an error still persists then
allprojects { repositories { google() // make it first element jcenter() maven { url 'https://maven.google.com' } } }