1

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':app:compileReleaseKotlin'.

A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction Compilation error. See log for more details

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

BUILD FAILED in 1m 35s Running Gradle task 'assembleRelease'... 96.7s Gradle task assembleRelease failed with exit code 1

i tried by changing java home and invalidating cache and restart the android studio. but still the same error happen !

1
  • The actual cause will be outputted above that log - that log is used as a catch-all for all of the Kotlin compilation errors that were outputted by the compiler. Commented Mar 24, 2024 at 17:08

3 Answers 3

3

In Flutter SDK Version 3.22.0, android/settings.gradle file, replacing this line worked for me:

plugins {
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
id "com.android.application" version "7.3.0" apply false
id "org.jetbrains.kotlin.android" version "1.9.23" apply false
}

I just changed the org.jetbrains.kotlin.android version to 1.9.23

Sign up to request clarification or add additional context in comments.

Comments

0

Im using Flutter 3.22.3, you can change setting in android/settings.gradle file:

plugins {
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
id "com.android.application" version '7.4.2' apply false
id "org.jetbrains.kotlin.android" version "1.9.0" apply false}

Change version android with version kotlin.android you using

Comments

0

../android/settings.gradle

plugins {
    id "dev.flutter.flutter-plugin-loader" version "1.0.0"
    id "com.android.application" version "8.3.2" apply false
    id "org.jetbrains.kotlin.android" version "1.9.24" apply false
}

https://kotlinlang.org/docs/releases.html#release-details`[1]`

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.