Skip to content

Fix Flutter 3.24 kotlin compilation.#977

Merged
timbotimbo merged 1 commit intojuicycleff:masterfrom
timbotimbo:Flutter_3.24_kotlin_error
Aug 15, 2024
Merged

Fix Flutter 3.24 kotlin compilation.#977
timbotimbo merged 1 commit intojuicycleff:masterfrom
timbotimbo:Flutter_3.24_kotlin_error

Conversation

@timbotimbo2
Copy link
Copy Markdown
Contributor

Description

As discussed in #973, Flutter 3.24 causes kotlin compilation errors because of Androidx interface changes.

FlutterUnityWidgetPlugin.kt:97:9 Cannot weaken access privilege 'public' for 'lifecycle' in 'LifecycleOwner'
FlutterUnityWidgetPlugin.kt:97:21 'lifecycle' hides member of supertype 'LifecycleOwner' and needs 'override' modifier

Also requested in #975

The last reference to the class using LifecycleOwner was removed over 2 years ago
Therefore the easiest fix is to get rid of it.

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🛠️ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • ✅ Build configuration change
  • 📝 Documentation
  • 🗑️ Chore

@timbotimbo timbotimbo merged commit f51fedc into juicycleff:master Aug 15, 2024
@timbotimbo timbotimbo deleted the Flutter_3.24_kotlin_error branch August 4, 2025 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants