Dart Analysis problems not shown in editor in Android Studio Bumblebee - flutter

After upgrading Android Studio to v2022.1.1 (Bumblebee) Dart Analysis problems shown in the corresponding tab are not shown within the editor itself.
Typos on the other hand are shown as one can see in the attached screenshot.
Flutter doctor shows no issues and restarting Android Studio doesn't help either. I haven't found any other developers reporting the same issue so I assume it's upon me, but I have no clue what I might have changed to cause this behaviour.
.

This answer helped me https://stackoverflow.com/a/71223418/1998851. I'm not sure how I broke things, but going to Dart Analysis -> Dart Analysis Server Settings -> Scope Analysis to current package, fixed things

Related

Breakpoints not working with Flutter in Android Studio

I can set breakpoints, but when I run in Debug mode the breakpoint's icon change with this:
I think that the problem is the new version of Flutter plugin in Android Studio, but I'm not sure. How to fix this?
What I've tried:
flutter clean
android studio cache clean and restart
Upgrade to the latest version of the flutter plugin 65.1.3 solved my problem.
https://plugins.jetbrains.com/plugin/9212-flutter/versions
need to roll back the version of the flutter plugin to 64.1.2.
https://plugins.jetbrains.com/plugin/9212-flutter/versions
Confirmed: plug-in was one thing.
The other problem is that IntelliJ (same for Android Studio) distinguish between:
import '../../viewmodel/**m**essages
import '../../viewmodel/**M**essages
Compiling, running, Dart analysis ... everything's fine. However, breakpoints don't work!
To be more precise: some breakpoints don't work, only in some files!
Tip: If a breakpoint does not work, remove all imports in the file. Click the bulb to get suggestions - and you will see the duplicate imports.
See wrong imports
Btw.: I am on Windows. And the file system does not distinguish between upper and lower case filenames.
Faced to this issue today as well: looks like for me the solution was to update Flutter / Dart SDK and their Plugins for Android Studio.
Some users report the problem is linked to the Chrom Version >=100 due to API change, but on my side it was not working with Edge as well.
After update problem has gone
There is indeed also an issue with Chrome Version >=100. Running flutter upgrade (to flutter 2.10.5) fixed this for me as described here

Flutter - How to run an existing project in Android Studio BumbleBee

This sounds stupid and like a duplicate, but this is driving me nuts.
All I am trying to do is get an existing flutter project to run on my newly installed Android Studio BumbleBee on an M1 Mac.
I read somewhere that AS creates a default configuration; however, in my case there is no default configuration. I am trying to add one but no luck so far. I don't know what needs to be chosen as a module and what other settings are required.
To worsen things, there's no Sync with Gradle option in Android Studio Bumblebee anywhere.
I have wasted a lot of time in this; can someone suggest the right steps so that I get my project running?

VS Code testing tab no longer finds tests

After upgrading from Flutter 2.5.0 to Flutter 2.5.1, the testing tab in VS Code no longer finds all the tests for any of my Flutter projects. Instead, this is all I see:
I've tried downgrading back to 2.5.0, but no luck. Obviously, I can still use just use flutter test to run all the tests, but this isn't as nice as the testing UI that was previously available. Other developers on my teams have also run into this problem. I haven't seen any posts / info about it online or in the Flutter changelogs. My VS Code version is the exact same from before this became an problem. (VS Code version: 1.60.2)
Any help would be appreciated!
This is only a temporary fix. But if you downgrade the dart extension in VS Code, then it will bring back the older testing which can find / run all the tests.
Open the extensions tab in VS Code -> gear icon -> install another version... -> 3.26.0. After it finds the version, and you select it, you'll need to restart VS Code. Then the old testing should be available.

The refactoring option is gone after dart last update, what can I do, I tried restarting and uninstalled Visual Studio Code but nothing happened

Click on the image description.
Worked for me on beta as well. It's a bit less cutting edge than dev so might be better for some uses.
flutter channel beta
flutter upgrade
Also found out that turning off the previewLSP setting in the VSCode Dart & Flutter extension settings turns the refactoring menu back on. There seems to be a disagreement between LSP mode and refactoring that is fixed in later versions. If you don't want to upgrade you can try turning that setting off and then restarting VSCode.
Run flutter doctor, if flutter and dart are up to date then try switching to a different flutter channel and update flutter and dart again. It worked for me recently.
Try switch to dev channel,
flutter channel dev
flutter upgrade
I sugest to re-install the flutter plugin for VSCode (wich includes dart). See if it helps.

Error on VSCode: Unable to determine bundled Java version

I'm using VSCode as my IDE. (no Android Studio). When I execute flutter doctor I get the error 'Unable to determine bundled Java version'. Does this affect anything? If it does, how do I fix it? (I have tried fixing the path in environment variables.)
Even if you don't use Android Studio you need Android SDK and Java for flutter to run. Make sure both of them are added to your environment variables. Although Android Studio is not necessary for flutter, just installing it and using VSCode as your IDE makes life a lot easier as it handles a lot of setup for you.