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
android.arch.lifecycle:extensions:1.1.1
add these two to build.gradle -> repositories
{ mavenCentral() google() }
and add to these are to allprojects
allprojects { repositories { mavenCentral() google() } }