Skip to content

[Android] Compiling error flutter 3.24 #973

Open
@lorisgir

Description

@lorisgir

Describe the bug
After the update to flutter 3.24 every time I try to build & run on the emulator I get these error messages:
e: file:///Users/{user}/.pub-cache/hosted/pub.dev/flutter_unity_widget-2022.2.1/android/src/main/kotlin/com/xraph/plugin/flutter_unity_widget/FlutterUnityWidgetPlugin.kt:97:9 Cannot weaken access privilege 'public' for 'lifecycle' in 'LifecycleOwner'
e: file:///Users/{user}/.pub-cache/hosted/pub.dev/flutter_unity_widget-2022.2.1/android/src/main/kotlin/com/xraph/plugin/flutter_unity_widget/FlutterUnityWidgetPlugin.kt:97:21 'lifecycle' hides member of supertype 'LifecycleOwner' and needs 'override' modifier

I already tried to run flutter clean and rebuild the unity project from unity but always the same error

Unity:

  • OS: MacOS
  • Version 2022.3.36

Smartphone:

  • Device: Pixel 8 Emulator
  • OS: Android
  • Version 15

Metadata

Metadata

Assignees

No one assigned

    Labels

    androidThis issue is specific to the Android Platform.bugThis issue refers to a bug in the plugin

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions