Flutter project debugging is not Run in my vivo phone - flutter

I am facing a difficult problem now. Right now I can't do a flutter debug on my real Vivo-v2020 phone device. I've tried everything possible, but I still get this error and can't debug. However, the installed app works properly.
In my device everything is okay, Developer Mode ON, USB Debugging mode also ON
Any solution to this? Please help me... This is very important for me.
log:
Launching lib\main.dart on V2022 in debug mode...
Running Gradle task 'assembleDebug'...
Parameter format not correct -
√ Built build\app\outputs\flutter-apk\app-debug.apk.
Installing build\app\outputs\flutter-apk\app.apk...
I/flutter ( 4243): Observatory listening on ************************************

Actullay i faced this issue in my realme mobiles and vivo mobiles
The way i found to get out of it is.Uninstalling the debugging application using adb command-it remove application from all users and it works fine again
command: adb uninstall com.example.packagename
replace it with our package name

update to android 12 there must be resolved

I also had this problem with my vivo-v2025. But I solved the issue by following a simple step.
First, you just run the app on your phone using debug mode as usual.
Then you will see an error as shown below:
" Launching lib/main.dart on V2025 in debug mode...
✓ Built build/app/outputs/flutter-apk/app-debug.apk.
I/flutter (22675): Observatory listening on***************** "
After this, you just TERMINATE the program and start a fresh new run. The app will open. It worked in my case.
Posting an output image here .

vivo now runs flutter, update to the latest may 1st 2022 patch. You need to upgrade your device by accepting the latest update.

Related

Flutter Wireless Debugging - Debugger won't start

So, I have connected to my phone using the adb connect command and now everything is going fine. Only issue is after a successful connection and the assembleDebug process the flutter run just get stuck. It's like the debugger is not able to start for some reason. Did anyone face an issue like this ?
System Info:
Flutter SDK Version: Flutter 3.0.2
Device Model: Samsung Galaxy M31
CPU Architecture: Android ARM64
Android Version: Android 12
If yes, I would like to know how you made your way around it. Any help is appreciated ! Thanks in advance.

Can't run flutter project due to error VERBOSE.dart error, isolate error

When I try to run my flutter-project code on the iOS simulator in VS code, I get the following error on the console:
Launching lib/main.dart on iPhone 11 Pro in debug mode...
lib/main.dart:1
Xcode build done. 24.4s
[VERBOSE-2:shell.cc(103)] Dart Error: Can't load Kernel binary: Invalid SDK hash.
[VERBOSE-2:dart_isolate.cc(171)] Could not prepare isolate.
[VERBOSE-2:runtime_controller.cc(415)] Could not create root isolate.
[VERBOSE-2:shell.cc(588)] Could not launch engine with configuration.
Thanks in advance.
Hi!
In my case, the error was caused by the forced shutdown of the IDE.
After manually selecting the libraries, I identified the one that was causing the problem, updated the project without it, and updated the project again with it.
With that the problem was solved.
Hope I have helped, if yes, please flag.
Could you delete the bin/cache folder, then run app
Open terminal and run: $ flutter channel beta
"it will install beta version, once installation is done, try it!"
"In case you willing to change the beta version to stable version you can use the following:"
$ flutter channel stable

Flutter App stuck at “Running Gradle task 'assembleDebug'… ”

Please I need Help Solving this Issue
I have been running my flutter app without issues, but recently I can't run or debug my apps again, each time I try running my app from the terminal or debug console it always get stuck at Flutter App stuck at “Running Gradle task 'assembleDebug'”
C:\Development\projects\flutter>cd kchat
C:\Development\projects\flutter\Kchat>flutter run
Running "flutter pub get" in Kchat... 3.6s
Launching lib\main.dart on GIONEE S10C in debug mode...
Running Gradle task 'assembleDebug'...
(This is taking an unexpectedly long time.)
I have solved the problem by running
flutter run -v
it fixed all the problem but took a longer time, and I can now use
flutter run
but still can't use Debug console
Alternatively, try to fix your project.
Delete the android folder in your project, having previously saved it in another place, then in the terminal run flutter create your_project_name for the folder in which your project is located.

flutter given error while running: Error waiting for a debug connection: Bad state: No element

I'm launching the app in a real device.
Anyone knows why this is happening?
Launching lib/main.dart on GT I9063T in debug mode...
✓ Built build/app/outputs/apk/debug/app-debug.apk.
Error waiting for a debug connection: Bad state: No element
Error launching application on GT I9063T.
Exited (sigterm)
Even the hello-world app is showing this error.
Run flutter clean.
This works for me.
I had this error with a clean install on MacOS X (Mojave), and after trial and error discovered that the main user who is running flutter debug needs to be an admin user.
Clue was the line:
log: Must be admin to run 'stream' command
when running from command line.
After this VS Code and command line work.
Build always works on my VS code normally. Updating to the latest Flutter 1.12 also started showing this and most times, my code either shows up on my device first before showing that debug has started or the program just quits. Any fix with VS code because I am not an Android Studio fan.
Try to change flutter channel to beta using "flutter channel beta". it worked for me to fix issue which is because flutter version is updated to "v1.12.13+hotfix.5".
I ended reinstalling flutter sdk.
Ubuntu 16.04
VSCODE
Started with Flutter 12. It seems that the user must be admin now.
Rolling back to a previous Flutter version will do for now.
flutter version v1.9.1+hotfix.6
I changed the channel of flutter to the master and works, I was using the stable channel.
You can use the command:
flutter channel master
or just flutter channel to see another channel.
In the 'Developer Options' of my phone, when I changed the 'Select Debug app' option to 'Nothing', the error was solved.
Try to downgrade the libglvnd package to version 1.2.0 in arch linux.
This started occuring after i updated xcode to 14.1.
Simple Restarting mac works with flutter clean

After uninstall app on device flutter run not work

I'm using vs code for building my flutter app.
But after uninstall debug app on my device, 'flutter run' command not working properly and stop in installing status.
Please help me.
Thanks.
Launching lib/main.dart on RNE L21 in debug mode...
Initializing gradle... ۱۱٫۷s
Resolving dependencies... ۱۴٫۹s
Gradle task 'assembleDebug'...
Gradle task 'assembleDebug'... Done ۱۰۱٫۷s
Built build\app\outputs\apk\debug\app-debug.apk.
Installing build\app\outputs\apk\app.apk... ۶٫۱s
It seems like when you uninstall the flutter application, though it is no longer available on the phone It is not deleted properly(Only in the flutter case). Therefore to fix this. you can run adb and uninstall from the package. Here is a step-by-step procedure.
If you are in windows:
Step 1. Open your SDK path in command prompt
eg.
C:\Users\kharag\AppData\Local\Android\Sdk\platform-tools
Step 2. Search your app package name from the flutter app (It will be in AndroidManifest.xml)
eg.
com.mycodingchannel.icttapp
Step 3. Now uninstall your app by running the command:
adb uninstall com.mycodingchannel.icttapp
That's all, Now run your app and it should work. Thanks
Had the same problem, copied .apk file on device and installed it from there, after that debugger worked without any issues.
Once you see Built/..... in termial. The apk has been created. Now if the installing fails/takes long time. Go to [app folder\app\outputs\apk]
Copy the app.apk/debug.apk any other file to your device and install it.
Now once you re-run it will work fine.
If that doesn't work flutter clean+flutter pub get. Follow the above step.