flutter_boost
flutter_boost copied to clipboard
不兼容的类型: androidx.lifecycle.Lifecycle无法转换为android.arch.lifecycle.Lifecycle
Steps to Reproduce
A small application to reproduce the bug(最小化可复现的demo)
- ...dart侧编译flutter_boost报错
- ...
- ...
Flutter Boost Version v1.12.13-hotfixes Target Platform: Flutter 1.12.13+hotfix.6-pre.1 Target OS version/browser: Devices:
Logs
add your crash log or something else.
android/src/main/java/com/idlefish/flutterboost/containers/FlutterActivityAndFragmentDelegate.java:179: 错误: 不兼容的类型: androidx.lifecycle.Lifecycle无法转换为android.arch.lifecycle.Lifecycle
host.getLifecycle()
确认你当前工程用的是androidx还是android support library,并选择对应的合适的flutter boost版本。
Steps to Reproduce
A small application to reproduce the bug(最小化可复现的demo)
- ...dart侧编译flutter_boost报错
- ...
- ...
Flutter Boost Version v1.12.13-hotfixes Target Platform: Flutter 1.12.13+hotfix.6-pre.1 Target OS version/browser: Devices:
Logs
add your crash log or something else.
android/src/main/java/com/idlefish/flutterboost/containers/FlutterActivityAndFragmentDelegate.java:179: 错误: 不兼容的类型: androidx.lifecycle.Lifecycle无法转换为android.arch.lifecycle.Lifecycle host.getLifecycle()
应该是你的工程的lifecycle和引入的boost的lifecycle 在support和androidx上不匹配