ext { var = '3.5.0' }// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { jcenter() maven { url "https://maven.google.com" } google() } dependencies { classpath "com.android.tools.build:gradle:3.5.0" } } allprojects { repositories { google() jcenter() } }