'Breakpoints not working with Flutter in Android Studio
Solution 1:[1]
Upgrade to the latest version of the flutter plugin 65.1.3 solved my problem.
Solution 2:[2]
need to roll back the version of the flutter plugin to 64.1.2.
Solution 3:[3]
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.
Solution 4:[4]
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
Solution 5:[5]
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
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Muhammad Ibrahim |
Solution 2 | Mr4Mike4 |
Solution 3 | Markus Schmidt |
Solution 4 | Fellow7000 |
Solution 5 | Marc Van Daele |