// Top-level build file where you can add configuration options common to all sub-projects/modules. buildDir = "@abs_top_builddir@/android/build" buildscript { repositories { google() mavenCentral() } dependencies { // before updating make sure https://issuetracker.google.com/issues/293294923 is fixed classpath 'com.android.tools.build:gradle:3.6.4' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { google() mavenCentral() } } tasks.register('clean', Delete) { delete rootProject.buildDir } afterEvaluate { clean.dependsOn(':lib:clean') }