Error:Failed to resolve: support-vector-drawable

后端 未结 9 1422
无人共我
无人共我 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:49

    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
    

提交回复
热议问题