I need to find a solution and an explanation for this error. Thursday it was working and building correctly and the next day I get this error. I don't understand why.
Before I didn't have the kotlin version configured in android/build.gradle but with each version, I get a different error. Please help.
buildscript {
ext {
buildToolsVersion = '29.0.3'
minSdkVersion = 21
compileSdkVersion = 31
targetSdkVersion = 30
//kotlin_version = '1.4.20'
}
repositories {
google()
mavenCentral()
jcenter()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath 'com.google.gms:google-services:4.3.8'
classpath('com.android.tools.build:gradle:4.1.0')
//classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.20")