I am getting this error
Launching lib/main.dart on RMX2020 in debug mode...
Running Gradle task 'assembleDebug'...
FAILURE: Build failed with an exception.
What went wrong:
The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher.
The following dependencies do not satisfy the required version:
project ':flutter_document_scanner' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50
Try:
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
I am getting this error
Launching lib/main.dart on RMX2020 in debug mode... Running Gradle task 'assembleDebug'...
FAILURE: Build failed with an exception.
What went wrong: The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher. The following dependencies do not satisfy the required version: project ':flutter_document_scanner' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50
Try:
Get more help at https://help.gradle.org
BUILD FAILED in 12s Exception: Gradle task assembleDebug failed with exit code 1
while i am using ext.kotlin_version = '1.7.10' which already higher version this plugin not compatible with latest kotlin version.
here is my full build.gradle file
buildscript { ext.kotlin_version = '1.7.10' repositories { google() mavenCentral() }
}
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 }