Error:Failed to resolve: support-vector-drawable

后端 未结 9 1409
无人共我
无人共我 2020-12-28 21:23

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

9条回答
  •  無奈伤痛
    2020-12-28 21:56

    Add vectorDrawables.useSupportLibrary = true in defaultConfig

    defaultConfig {
        vectorDrawables.useSupportLibrary = true
    }
    

    If an error still persists then

    allprojects {
     repositories {
        google() // make it first element
        jcenter()
        maven { url 'https://maven.google.com' }
        }
      }
    

提交回复
热议问题