buildscript { //ext.kotlin_version = '1.3.50' ext.kotlin_version = '1.5.21' repositories { google() jcenter() } dependencies { // classpath 'com.android.tools.build:gradle:3.5.4' classpath 'com.android.tools.build:gradle:4.0.1' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath 'com.google.gms:google-services:4.3.5' classpath 'com.google.firebase:firebase-crashlytics-gradle:2.7.1' } } allprojects { repositories { mavenCentral() google() //maven { url 'https://jitpack.io' } jcenter() } configurations.all { exclude group: 'com.google.guava', module: 'failureaccess' resolutionStrategy { eachDependency { details -> if('guava' == details.requested.name) { details.useVersion '27.0-android' } } } } } rootProject.buildDir = '../build' subprojects { project.buildDir = "${rootProject.buildDir}/${project.name}" } subprojects { project.evaluationDependsOn(':app') } ext { flutterFFmpegPackage = "full-gpl-lts" } task clean(type: Delete) { delete rootProject.buildDir }