Skip to content

https://github.com/fluttercommunity/wakelock_plus/commit/847f3171916c9237fcf885039d4a0c9079430f83 #48

@syleishere

Description

@syleishere

This is breaking flet's video plugin with following:

compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1.
The class is loaded from C:/Users/dan/.gradle/caches/transforms-3/6498ee1438a7a83cb4725beb055db98c/transformed/jetified-kotlin-stdlib-1.9.23.jar!/kotlin/Unit.class
e: C:\Users\dan\AppData\Local\Pub\Cache\hosted\pub.dev\wakelock_plus-1.2.1\android\src\main\kotlin\dev\fluttercommunity\plus\wakelock\WakelockPlusPlugin.kt: (38, 5): Class 'kotlin.Unit' was
compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1.
The class is loaded from C:/Users/dan/.gradle/caches/transforms-3/6498ee1438a7a83cb4725beb055db98c/transformed/jetified-kotlin-stdlib-1.9.23.jar!/kotlin/Unit.class
e: C:\Users\dan\AppData\Local\Pub\Cache\hosted\pub.dev\wakelock_plus-1.2.1\android\src\main\kotlin\dev\fluttercommunity\plus\wakelock\WakelockPlusPlugin.kt: (42, 16): Class 'kotlin.Unit' was
compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1.
The class is loaded from C:/Users/dan/.gradle/caches/transforms-3/6498ee1438a7a83cb4725beb055db98c/transformed/jetified-kotlin-stdlib-1.9.23.jar!/kotlin/Unit.class

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':wakelock_plus: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.

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

BUILD FAILED in 28s
Gradle task assembleRelease failed with exit code 1

Error building Flet app - see the log of failed command above.
PS C:\Users\dan\flet\crystaltunes> flutter pub upgrade
Expected to find project root in current working directory.
PS C:\Users\dan\flet\crystaltunes> cd ..
PS C:\Users\dan\flet> flutter pub upgrade
Expected to find project root in current working directory.
PS C:\Users\dan\flet>

At least for version 1.2.1 that video currently uses. We have no control over running flutter pub upgrades etc on a flet build, the commit essentially breaks the complete package when I try to include video plugin as media_kit includes this in it's own dependencies.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions