Error:Failed to resolve: support-vector-drawable

后端 未结 9 1415
无人共我
无人共我 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条回答
  •  -上瘾入骨i
    2020-12-28 21:55

    I just encountered this error along with some others:

    Failed to resolve: support-vector-drawable
    Failed to resolve: livedata-core
    Failed to resolve: common
    Failed to resolve: runtime
    Failed to resolve: viewmodel
    Failed to resolve: monitor
    

    I'm not using React Native but found the answer on there:

    In android/build.gradle move the jcenter() to the bottom:

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

提交回复
热议问题