0

I am trying to generate a flutter apps signed apk from android studio but i am getting the error that the module was compiled with incomapatible version of kotlin. this is my project level build.gradle file .

buildscript {
    ext.kotlin_version = '1.8.0'
    repositories {
        google()
        mavenCentral()
    }

    dependencies {
        
        classpath 'com.android.tools.build:gradle:7.3.0'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    }
}

allprojects {
    repositories {
        google()
        mavenCentral()
    }
}

rootProject.buildDir = '../build'
subprojects {
    project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
    project.evaluationDependsOn(':app')
}

tasks.register("clean", Delete) {
    delete rootProject.buildDir
}

can someone know what i am doing wrong. i am alo getting some -xlint deprecated by java errors which says recompile with xlint. but it does not show how to compile with x lint . can someone help me in solving this?

rishabh
  • 1
  • 5

0 Answers0