Skip to content

Snappy1

  • Home
  • Android
  • What
  • How
  • Is
  • Can
  • Does
  • Do
  • Why
  • Are
  • Who
  • Toggle search form

[FIXED] flutter – The Android Gradle plugin supports only Kotlin Gradle plugin version 1.3.10 and higher

Posted on November 11, 2022 By

Solution 1 :

Your error itself gave you the solution. You need to upgrade kotlin-stdlib-jdk7 dependencies version in this line.

implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"

Find where $kotlin_version is defined. Change it to latest version as defined on Official Kotlin Release page

Problem :

  • 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 ‘:drawerbehavior’ -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.71

  • 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.

  • Get more help at https://help.gradle.org

BUILD FAILED in 4s
Running Gradle task ‘assembleRelease’…
Running Gradle task ‘assembleRelease’… Done 5.3s
Gradle task assembleRelease failed with exit code 1

android {
compileSdkVersion 28

sourceSets {
    main.java.srcDirs += 'src/main/kotlin'
}

lintOptions {
    disable 'InvalidPackage'
}

defaultConfig {
    // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
    applicationId "com.example.sununigeriaflutter"
    minSdkVersion 16
    targetSdkVersion 28
    versionCode flutterVersionCode.toInteger()
    versionName flutterVersionName
    testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

buildTypes {
    release {
        // TODO: Add your own signing config for the release build.
        // Signing with the debug keys for now, so `flutter run --release` works.
        signingConfig signingConfigs.debug
    }
}

}

flutter {
source ‘../..’
}

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'

}

Comments

Comment posted by Ace

This does not work and current version of

Comment posted by nitinkumarp

Yes @ace it is now but 2 years back it was 1.3.61. Basically update your kotlin version to the latest.

READ  [FIXED] java - vector path data in android studio
Powered by Inline Related Posts
Android Tags:android, flutter, kotlin

Post navigation

Previous Post: [FIXED] android – Build not succed in flutter
Next Post: [FIXED] kotlin – Opening the application from the results google.com, always directs to the home page of WebView Android

Related Posts

[FIXED] android – how to add floating icon in Bottom Nav Bar? Android
[FIXED] android – Get selected item position in Recyclerview Android
[FIXED] android – react native vector icons not working after export on expo Android
[FIXED] java – how to make brightness changing button for widget Android
[FIXED] android – setOnCheckedChangeListener cannot resolve symbol in Check Box Android
[FIXED] android – What’s good approach, InflateView/ removeView OR setting Visibility.GONE? Android

Archives

  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022

Categories

  • ¿Cómo
  • ¿Cuál
  • ¿Cuándo
  • ¿Cuántas
  • ¿Cuánto
  • ¿Qué
  • Android
  • Are
  • At
  • C'est
  • Can
  • Comment
  • Did
  • Do
  • Does
  • Est-ce
  • Est-il
  • For
  • Has
  • Hat
  • How
  • In
  • Is
  • Ist
  • Kann
  • Où
  • Pourquoi
  • Quand
  • Quel
  • Quelle
  • Quelles
  • Quels
  • Qui
  • Should
  • Sind
  • Sollte
  • Uncategorized
  • Wann
  • Warum
  • Was
  • Welche
  • Welchen
  • Welcher
  • Welches
  • Were
  • What
  • What's
  • When
  • Where
  • Which
  • Who
  • Who's
  • Why
  • Wie
  • Will
  • Wird
  • Wo
  • Woher
  • you can create a selvedge edge: You can make the edges of garter stitch more smooth by slipping the first stitch of every row.2022-02-04
  • you really only need to know two patterns: garter stitch

Recent Posts

  • What color are dead flea eggs?
  • What is Indiana vine?
  • What’s the downside of a Chromebook?
  • Is phosphide the same as phosphorus?
  • Why do you need an S bend?

Recent Comments

No comments to show.

Copyright © 2023 Snappy1.

Powered by PressBook Grid Dark theme