ext { targetCompatibility = JavaVersion.VERSION_1_8 }// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { ext { agp_version = '7.4.2' agp_version1 = '4.2.2' agp_version2 = '3.6.2' } repositories { jcenter() google() } dependencies { classpath "com.android.tools.build:gradle:$agp_version2" classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1' classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.6' } } allprojects { repositories { jcenter() google() maven { url 'https://jitpack.io' } } } task clean(type: Delete) { delete rootProject.buildDir }