Flutter web version of any app crashes when it's launched on Chrome, even when I launch a new project built from scratch (no modification, when Android Studio finishes building it, I launch it).
I receive this log:
Launching lib/main.dart on Chrome in debug mode...
Waiting for connection from debug service on Chrome...
This app is linked to the debug service: ws://127.0.0.1:52137/Ot39336ZDps=/ws
Debug service listening on ws://127.0.0.1:52137/Ot39336ZDps=/ws
💪 Running with sound null safety 💪
Debug service listening on ws://127.0.0.1:52137/Ot39336ZDps=/ws
Failed to send request: {"jsonrpc":"2.0","id":"27","method":"getMemoryUsage","params":{"isolateId":"1"}}
Application finished.
But it doesn't give me a lot of information about what's going on.
The weird part is that both iOS and Android versions of the app run perfectly.
I'm in the stable channel, using FLutter 2.5.2 and Dart 2.14.3
Related
Launching lib\main.dart on M2003J15SC in debug mode...
lib\main.dart:1
Plugin project :firebase_core_web not found. Please update settings.gradle.
Invalid depfile: D:\Kampus\Alternative Internship\E-Butler FLutter\history-ebutler-main\.dart_tool\flutter_build\8db1b350320c9cfb508a70518c727e07\kernel_snapshot.d
Parameter format not correct -
√ Built build\app\outputs\flutter-apk\app-debug.apk.
Error waiting for a debug connection: The log reader stopped unexpectedly
Error launching application on M2003J15SC.
Exited (sigterm)
when i press f5 on my vscode the build is success but in my phone only view white screen and then it exited
Just switch off the Turn on MIUI Optimization in your Developer options then run your app.
For some other fixes checkout this.
Your app is installed even if your phone stays on white screen, you can see that it worked by closing and reopening the app from your phone.
This Issue happens on most Xiaomi...Redmi note 10 pro as well this is only when it comes to flutter, if you launch project from root/android it will work fine,
If you use command line flutter run it will also work but you will not get input back from command line after install only difference app is launching
At the moment this is the only worked around
Make sure that your app meets the following requirements:
Targets API level 19 (KitKat) or higher Uses Android 4.4 or higher
https://firebase.google.com/docs/flutter/setup?platform=android
in some android devices not receiving firbase base responce because of its versions and api level
flutter clean, restart your devices, reconnect your devices to your pc and run again, this solution worked for me.
I've created a new app using the command pallet in vs Code, and I'm having many issues using it.
The inspector doesn't work - I get a message in the inspect window, stating that the inspector is not available for the application.
the application crashes a lot, and I have to wait a long time for rebuilding.
I get the following message in the debug console:
Launching lib\main.dart on sdk gphone x86 in debug mode...
lib\main.dart:1 √ Built build\app\outputs\flutter-apk\app-debug.apk.
W/FlutterActivityAndFragmentDelegate(27114): A splash screen was
provided to Flutter, but this is deprecated. See
flutter.dev/go/android-splash-migration for migration steps.
Connecting to VM Service at ws://127.0.0.1:60885/Gjga6R7ZZ-o=/ws
I/Choreographer(27114): Skipped 39 frames! The application may be
doing too much work on its main thread.
I have a feeling that there's something wrong with my environment.
windows 10
vs code 1.60.2
fluter 2.5.2
thanks in advance
When I create a clean flutter project(flutter create proj_name) Then I try run it in debug mode from vs-code on a real device android 5.1.1 and it starts and works fine for the first time, but if i stop application and run it in debug mode again the following message like this results
What helps to run in debug mode the application is restarting the real smartphone so it will work until you stop the application and try to run in debug mode again.
Does anyone have any suggestions how I can solve this?
The error points out that it has issues connecting to the Android emulator. Checking the flutter doctor logs, the emulator doesn't seem to appear. Try restarting the emulator using cold boot. Open the Android Device Manager and click on Cold Boot Now on the emulated device. Then run flutter doctor --verbose to check if the emulator can now be seen in the list of connected devices.
I am trying to debug macos app in IntelliJ IDEA IDE and after i click "Flutter Attach" option I see only:
Waiting for a connection from Flutter on macOS...
which never changes.
Is it possible to debug macos application in IntelliJ?
Attaching to a desktop Flutter application requires attaching via observatory URL, which IntelliJ doesn't currently support. However, if you run your project from IntelliJ, rather than launching it seperately and then trying to attach, debugging should work normally.
When I run my flutter web project in a debug version of Chrome while being connected to internet, I get the following build message:
Launching lib\main.dart on Chrome in debug mode...
Building application for the web...
Attempting to connect to browser instance..
Debug service listening on ws://127.0.0.1:55339/mh67GZ3e4D0=
Which probably means that the website is hosted locally with port 55339.
But the chrome windows is opened with the port 55063 and which is completely blank.
When I try to open "127.0.0.1:55339", which supposedly should open my web project gives me an error:
Internal Server Error
But when I disconnect from Internet and build the project , Project builds successfully and executes perfectly, as in the proper window is opened.
What could possibly go wrong while I am connected to internet, something related to proxy?
How do I build the project while still being connected to internet?
try to run with this command: flutter run --release -d chrome -v