Flutter java.lang.IllegalAccessError: Interface androidx.lifecycle.b implemented by class

java.lang.IllegalAccessError: Interface androidx.lifecycle.b implemented by class

at io.flutter.plugins.GeneratedPluginRegistrant.registerWith(Unknown Source:51)
    at com.ara.deer.MainActivity.p(Unknown Source:0)
    at io.flutter.embedding.android.e.g(Unknown Source:64)
    at io.flutter.embedding.android.d.onCreate(Unknown Source:20)

混淆添加这一行,再试试,希望可以解决有问题的盆友

## androidx
-keep class androidx.lifecycle.** { *; }

你可能感兴趣的:(Flutter java.lang.IllegalAccessError: Interface androidx.lifecycle.b implemented by class)