Closed Satendra124 closed 3 years ago
This is an open issue in flutter with Android Gradle Plugin 4.0+. See flutter/flutter#58479 for the full discussion.
tl;dr downgrade android gradle plugin to 3.x and/or add the following proguard rule:
-keep class androidx.lifecycle.DefaultLifecycleObserver
Keeping open for reference
Any update? I'm still experiencing this issue
Yes! Adding READ_PHONE_STATE permission in the manifest did the magic for me.
Still doesn't work in release mode
Simply add the dependency https://pub.dev/packages/flutter_plugin_android_lifecycle
Keeping open for reference
It Works for me thanks ...
Simply add the dependency https://pub.dev/packages/flutter_plugin_android_lifecycle
works for me
Simply add the dependency https://pub.dev/packages/flutter_plugin_android_lifecycle
it solved my problem, thank you very much, I was breaking my head for hours trying to solve this bug haha
When i try to run the
flutter run --release
the app opens and when mapbox needs to be shown then it crashes. Commenting the mapbox code the app works fine so am guessing there is some problem with the plugin.this is the error I get in log:
Please help