Issue with Kotlin Gradle version

Asked

Viewed 61 times

0

Good morning, I am developing an app with flutter and the application uses a dependency called barcode_scan that serves to scan QR code, when generating the APK Gradle an error with the version. That is the mistake:

* What went wrong:
The Android Gradle plugin supports only Kotlin Gradle plugin version 1.3.10 and higher.
The following dependencies do not satisfy the required version:
project ':barcode_scan' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.51

This is the code of Gradle:

buildscript {
    ext.kotlin_version = '1.3.50'
    repositories {
        google()
        jcenter()
    }

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

allprojects {
    repositories {
        google()
        jcenter()
    }
}

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

task clean(type: Delete) {
    delete rootProject.buildDir
}
  • I know little about Flutter but it does not generate a file to manage these dependencies, where you could modify the version of Gradle ?

  • Gradle is not generated in the dependency file but build.Gradle which is the default for android

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.