I have recently updated my Android Studio to 3.1.2 . After the update I tried opening the existing project and was shown multiple gradle errors while compiling the project.
android.arch.lifecycle:runtime
is available at the google maven repository. Make sure you add the repository in the repositories block of your build.gradle
allprojects {
repositories {
jcenter()
google()
}
}
or
allprojects {
repositories {
jcenter()
maven { url "https://maven.google.com" }
}
}
Reference : Adding Components to your Project