Skip to content
This repository has been archived by the owner on Dec 2, 2022. It is now read-only.

compiler error using Flutter 2.10.1 #11

Open
backyardcart opened this issue Jun 4, 2022 · 1 comment
Open

compiler error using Flutter 2.10.1 #11

backyardcart opened this issue Jun 4, 2022 · 1 comment

Comments

@backyardcart
Copy link

the following error i get when compiling

`e: /Users/builder/programs/flutter/.pub-cache/hosted/pub.dartlang.org/heic_to_jpg-0.2.0/android/src/main/kotlin/seo/dongu/heic_to_jpg/HeicToJpgPlugin.kt: (63, 20): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
The class is loaded from /Users/builder/.gradle/caches/transforms-2/files-2.1/65bb16e09fa205eb53e60e67829dc9bc/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class

FAILURE: Build failed with an exception.

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

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.

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

BUILD FAILED in 4m 20s
Running Gradle task 'assembleRelease'... 265.2s

┌─ Flutter Fix ────────────────────────────────────────────────────────────────────────────────┐
│ [!] Your project requires a newer version of the Kotlin Gradle plugin. │
│ Find the latest version on https://kotlinlang.org/docs/gradle.html#plugin-and-versions, then │
│ update /Users/builder/clone/android/build.gradle: │
│ ext.kotlin_version = '' │
└──────────────────────────────────────────────────────────────────────────────────────────────┘
Gradle task assembleRelease failed with exit code 1`

thanks

@lordzyx
Copy link

lordzyx commented Sep 20, 2022

Same problem here

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants