jcenter is currently down. In the end adding mavenCentral()
to both sets of repositories in the project build.gradle
file worked as a workaround for me:
buildscript {
repositories {
mavenCentral()
google()
jcenter()
…
allprojects {
repositories {
mavenCentral()
google()
jcenter()
…