i am using flutter for 2 months and have made some basic apps with it but now i am having issues with the Hot Relode function, it started hapning since i have changed the smartphone on which i used to test the apps.
i am currently using IQOO Z6 (Funtuch OS 13 based on Android version 13) as my phone
the flutter version i am developing with is 3.7.1
the error i am getting is:
√ Built build\app\outputs\flutter-apk\app-debug.apk.
Error waiting for a debug connection: The log reader stopped unexpectedly
Error launching application on I2127.
Exited (sigterm)
when i try to run it on a defferent device it works fine but it dose'nt work on the IQOO,
i reset my phone and reset my computer as well then reinstall everything again but the issue is the same, i do not know if this is a bug in the framework or in my device or i am dooing something wrong(Most likely).
Related
While testing Flutter apps on a connected (by USB) Android (Samsung S5, running API 23) device using:
Android Studio 20201.3.1 Patch 3
Mac OS Monterey
The app will run on the device the first time, but subsequent attempts result in the run tab saying:
Error connecting to the service protocol: failed to connect to
http://127.0.0.1...
The only way I can solve it is by restarting the device (the phone).
There must be a better way than restarting the device every time I test/build.
Does anyone know the cause and/or solution to this?
A workaround is:
While the project is open in Android Studio as a Flutter project,
Navigate to MainActivity in the Android\app\src... folder
Select "Open for editting in Android Studio" at the top-right of the screen.
Then when the project is open "as an Android project" you can run it however many times you want. (Flutter is no longer involved).
I have build android app on cordova -v9, it works completely fine till android 8 but when run on android 9 it only runs on emulator fully functional but when run on real android device, final submission of data to database is not done. Problem is I don't see any error in it. I think ajax request is not completed with database. Can anyone suggest some solution to it.
I recently just updated Cordova (on my Windows 10) and built the default hello world project. Usually, it works fine and runs on my phone, but now it just sort of builds and it just stops. It is not running on the phone, or not throwing any visible error. Here is a screenshot of what I get after executing cordova run android --verbose
And the process ends. I had been working on Cordova for past couple years, and haven't seen this type of behavior! Any help would be great! :)
How do I debug an Ionic app on an Android device using VS Code and Chrome Debugger?
Chrome Debugger (vscode-chrome-debug) documentation mentions that remote debugging can be done so I'm assuming that this means it can be done on an Android Device.
Can anyone give the steps and launch.json file for this?
Hi this one bothered me too for a period of time.
I use a simple approach to achieve this.
Run the command
cordova run android -debug
And I keep the android studio open along with it.
Now when your application is running on your device or simulator you can select that in Android studio and select the process you want to debug.
in android monitor you can get all the logs for that application.
Note:- It doesn't matter what application is open in Android Studio, as long your ionic app is in debug mode you can get logs there.
I've just started a blank Cordova project on Visual Studio 2015, the intention being to use it to develop mobile apps in the future. I've been able to get it to run in the emulator on Android and even onto an iOS device (through a Mac), but I haven't been able to figure out how to run straight onto a WP8.1/Android device, or on a WP8 emulator. When I try, I get this message:
Error running one or more of the platforms: Error: cmd: Command failed with exit code 2
You may not have the required environment or OS to run this project
The Android device also says, above that:
ERROR: Failed to deploy to device, no devices found.
There's very little documentation online, and because it's all so new, Google hasn't been particularly enlightening. It's possible that I'm missing some software, but I don't know what.
For the devices, it could be that I'm supposed to select the device from a list somewhere, but I can't see anywhere that could be. For the emulator, I'm assuming I'm missing software, or a setting is wrong on my PC, but have no idea what it could be.
To fix the issue with WP8:
I had been playing around with different versions of VS... un-installing and re-installing 2013 and 2015 and eventually hit the same issue as you.
The solution here worked for me:
No Emulator lists to deploy windows phone app
I do not have an android phone to test with t the moment, so I have not seen the android device issue.