Failed to resolve: support-fragment error when add google architecture component dependency

前端 未结 6 1529
青春惊慌失措
青春惊慌失措 2021-02-14 07:16

I want to use Google architecture components in my app, but after updating android studio to version 3.1.1 when I add android.arch.lifecycle:extensions:1.1.1 depend

6条回答
  •  臣服心动
    2021-02-14 07:49

    add these two to build.gradle -> repositories

    {
    mavenCentral()
    google() 
    }
    

    and add to these are to allprojects

    allprojects {
    repositories {
    mavenCentral()
    google()
    }
    }
    

提交回复
热议问题