Flutter java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/core/view/WindowInsetsControllerCompat; - flutter

When upgrading Flutter from version 2.5.3 to 2.8.1. I get this error and the app crashes. The app does compile and the main screen does appear for a split second but then it crashes and disappears. I have migrated the project to androidX. I have also updated the DartSDK version to 2.15.1.
Thank you for your help!

Related

modal_progress_hud_nsn is not compiling my code Flutter

I have upgraded Flutter from 2.10 to 3.0.5.
I am using plugin modal_progress_hud_nsn with latest version 0.2.1 in my flutter desktop application code. But when I run my application it is not compiling my code and giving the follow error
Anyone help me with this issue.
Thanks

Deprecation error in audio_service plugin flutter

I tried to run an application but it is giving the following deprecation error. I have upgraded to flutter 3 since then I am getting this error. I have tried flutter clean, pub get, pub repair.
Still, the error is constant.
I am using audio_service: ^0.18.2 and just_audio: ^0.9.24 versions.
That error means you are compiling against the next beta release of Android which deprecates some methods that were being used by audio_service. Someone has already submitted an issue on the project's GitHub page to support this beta version of Android, and the latest audio_service release should now support it.

Error while running app in debug mode and while building release apk in flutter

My flutter sdk version is 2.2.1 and dart sdk version is 2.13 . Flutter doctor shows everything is fine. Problem occurred while building release apk for the first time. After that running in debug mode shows error also! here is the pic
please change your java SDK 7 to Java 8 to support lambda expressions.

shared preference macos lib missing from Dart

I have this error with my Flutter app that caused by Dart SDK
I use Flutter 1.22.6 with Dart SDK 2.10.5 (stable) & intellij 2020.3 ...
when click on fix only remove shows, after remove the error goes, but then the error starts popup ...as I'm doing Android app so it's not affecting , but later for the iOS version I guess it will affect .
any idea how to solve ?
It looks like a cache problem.
Try to run the following commands:
flutter pub cache repair
flutter packages get

Flutter code not compiling after upgrade to version 1.27.0-8.0.pre

I'm trying to run my desktop flutter application. Since i've upgraded my flutter version to dev channel (flutter version 1.27.0-8.0.pre), code is not compiling after that. It shows following error on code compilation.
Please help me out. Thanks