flutter_boost icon indicating copy to clipboard operation
flutter_boost copied to clipboard

不兼容的类型: androidx.lifecycle.Lifecycle无法转换为android.arch.lifecycle.Lifecycle

Open hxinGood opened this issue 6 years ago • 2 comments

Steps to Reproduce

A small application to reproduce the bug(最小化可复现的demo)

  1. ...dart侧编译flutter_boost报错
  2. ...
  3. ...

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()

hxinGood avatar Jun 15 '20 12:06 hxinGood

确认你当前工程用的是androidx还是android support library,并选择对应的合适的flutter boost版本。

sdlu1992 avatar Jun 18 '20 09:06 sdlu1992

Steps to Reproduce

A small application to reproduce the bug(最小化可复现的demo)

  1. ...dart侧编译flutter_boost报错
  2. ...
  3. ...

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上不匹配

nightfallsad avatar Jun 26 '20 09:06 nightfallsad