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
I had a similar error and changing the repositories
order so that google()
comes before jcenter()
fixed it.
I had to change the order for the repositories
within buildscript
and allprojects
in the top level build.gradle
file.
Please see this commit: https://github.com/kunadawa/ud851-Exercises/commit/9f6720ef4d52c71b206ddaa8477f2cf6e77a66f4