Skip to content

channel.setMessageHandler error when building the example #3

@riverscuomo

Description

@riverscuomo

I'm unable to build the example. I'm on Flutter 3.0.5. I get the following error.

apps\plugins\flutter_cast_framework\android\src\main\java\com\gianlucaparadise\flutter_cast_framework\PlatformBridgeApis.java:1158: error: lambda expressions are not supported in -source 7
          channel.setMessageHandler((message, reply) -> {
                                                     ^
  (use -source 8 or higher to enable lambda expressions)
2 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':flutter_cast_framework:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

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