criistian14 / flutter_document_scanner

A Flutter plugin that allows the management of taking, cropping and applying filters to an image, using the camera plugin
45 stars 35 forks source link

The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher. #6

Closed joshua750 closed 9 months ago

joshua750 commented 1 year ago

I am getting this error
Launching lib/main.dart on RMX2020 in debug mode... Running Gradle task 'assembleDebug'...

FAILURE: Build failed with an exception.

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() }

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 }

criistian14 commented 9 months ago

Since version 1.1.0 the gradle is updated to 7.3.0 and the kotlin version to 1.8.20.

We are currently working on using gradle 8.