subprojects { repositories { mavenCentral() } } allprojects { repositories { mavenCentral() jcenter() maven { url "https://maven.google.com" } } } buildscript { repositories { mavenCentral() maven { url 'https://maven.google.com/' name 'Google' } google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:4.1.2' } }