Skip to content

Type mismatch: inferred type is FlutterEngine but PluginRegistry! was expected #1

@asmith26

Description

@asmith26

Hi there,

I'm trying to run this example, but I'm getting the following error:

Running Gradle task 'assembleDebug'...
e: ~/git/oauth2_client_test/android/app/src/main/kotlin/com/example/oauth2_client_test/MainActivity.kt: (10, 48): Type mismatch: inferred type is FlutterEngine but PluginRegistry! was expected

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileDebugKotlin'.
> 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 33s
Exception: Gradle task assembleDebug failed with exit code 1

Many thanks for any help, and for these amazing libs! :)

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