Unable to connect Dart DevTool to debug session - flutter

I'm getting following error while trying to connect devtool to debug app session.
getDartDevelopmentServiceVersion: (-32601) Method not found

I had the same problem a couple of days ago. I tried these methods and had no luck:
upgrading flutter and devtools (still on stable, just went to 1.22.6)
doing flutter clean
clearing the cache
reindexing in Android Studio
Finally I noticed there was a new release of Android Studio and upgraded it. This seems to have resolved the issue for me.

this may fix your problem temporarily, it seems there is some bugs with new feature
SWITCH channel to beta, if issue is fixed during the next week highly recommend you switch to stable.
flutter channel beta
flutter upgrade
or launch manually
with flutter pub global run devtools
and use a link to connect

Related

I'm not able to run any flutter app on my emulator (VSC & Android Studio)

So basically the problem is that I created a new flutter app, and the I opened the emulator(from android studio), and I clicked on run.
I had multiple problems that were related to heap memory and such, but I managed to solved most of then using all kind of methods from the internet.
I even deleted and installed Java and android studio multiple times, I changed the Enviromental Variables as the Internet suggested, but now, the current error that I get is this:
The Error Image
my flutter doctor -v:
flutter doctor -v image
I'm about to lose my mind, I'm on this issuse for a few weeks. please help me fix it
after your seggestion to add "gradle.properties" and adding "org.gradle.jvmargs=-Xmx1024m" to it (without the " "):
after
Perhaps you shoud add a line at end of file gradle.properties org.gradle.jvmargs=-Xmx1024m then clean the project, also validate cache and restart the android studio. It should works then.

after switching flutter channel to beta , started getting error Type 'SystemMouseCursor' not found

t i don't know which flutter channel i was previously working for that it was working fine.when i was trying to create web app for that i switch flutter channel to beta after switching that channel when i reopen my old project i am start getting this error.
i am using android studio in ubuntu can anybody help me here? i tried to switch every channel it is not getting resolved
library was outdated i update syncFusion_flutter_pdfViewer

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.

Flutter on VS Code run stuck on "Installing build\app\outputs\apk\app.apk..."

When I run my application using the VS Code Run and Debug, The app is installed on my device and is stuck on a white screen. Meanwhile in the editor, the VS Code notification is stuck on "Installing build\app\outputs\apk\app.apk..."
I've tried to run different flutter apps on the physical device but was still met with the same error. I've also tried to run the flutter example increment app, but to no avail. I also uninstalled and reinstalled the flutter sdk from the stable GitHub branch but that also did not work. I've also tried solutions from about 22 other questions with similar problems.
However, when I use flutter run from the command line, the app installs and launches on my phone, however, I'm unable to use the Flutter DevTools Inspector.
P.S I've been able to debug flutter apps on the device with the Flutter DevTools in the past.
As of Flutter v1.20.2, this problem has been resolved. The linked GitHub issue is here if you disagree about the problem being solved.
You'll need to end the flutter, dart and flutter processes. So in terminal do this:
killall adb
killall dart
killall flutter
Then reload vscode

Flutter 'cannot find symbol'

What can I do to fix this issue, when trying to debug on android phone OR emulator?
http://prntscr.com/pp43k4
Ive tried reinstalling whole flutter, and still the same issue.
the project is on flutter version 1.7.8. Tried going to latest versions, still the same.
Try running flutter clean to clear the build artifacts - If the project was copied from another computer, or if you were using different version of flutter, that could help.