Skip to content

Can't build project after upgrade to Flutter 2.10.3 #11

@abhlabs

Description

@abhlabs

After upgrade to Flutter 2.10.3, I can no longer build my project unless I remove disk_space, getting error Execution failed for task ':disk_space:compileDebugKotlin'. See proposed fix in pull request.

Versions:

  • disk space 0.2.1
  • Flutter 2.10.3
  • Dart 2.16.1
e: Incompatible classes were found in dependencies. Remove them from the classpath or use '-Xskip-metadata-version-check' to suppress errors
...
e: c:\FlutterDev\flutter\.pub-cache\hosted\pub.dartlang.org\disk_space-0.2.1\android\src\main\kotlin\de\appgewaltig\disk_space\DiskSpacePlugin.kt: (14, 6): Class 'kotlin.jvm.JvmStatic' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.16.
The class is loaded from C:/Users/ahart/.gradle/caches/transforms-3/386454215e6950cb1162d1da9ff12466/transformed/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/jvm/JvmStatic.class
e: c:\FlutterDev\flutter\.pub-cache\hosted\pub.dartlang.org\disk_space-0.2.1\android\src\main\kotlin\de\appgewaltig\disk_space\DiskSpacePlugin.kt: (16, 7): 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.16.
The class is loaded from C:/Users/ahart/.gradle/caches/transforms-3/386454215e6950cb1162d1da9ff12466/transformed/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
...

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':disk_space:compileDebugKotlin'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions