Error Connecting to Service Protocol on Real Android Phone in Flutter - flutter

I'm working on bluetooth low energy with flutter. I updated flutter on android studio and so i have this error and this error write as :"Error connecting to the service protocol: failed to connect to http://127.0.0.1:52524" in run terminal so i could not run my program on real phone so how can i fix this problem, by the way my phone's android version is Android 5.0.1

Related

Having trouble in running default flutter application on my real android device

Just getting started with flutter development and facing this error

Flutter web version of my app crashes when launched

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

Flutter: 2.2.3 - How to solve the error: Error connecting to the service protocol: failed to connect to http://127.0.0.1:XYZ

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.

React native Android Project Not starting in emulator

i just created a react native project on windows, using expo. After Creating the project i ran npm start and then expo start the next logical thing to do is to press the a button which will launch, the project on the android virtual device, but instead it gave me this error Couldn't start project on Android: Error running adb: Error running app. Error: Activity not started, unable to resolve Intent { act=android.intent.action.VIEW dat=exp://192.168.43.148:19000 flg=0x10000000 }
when i tried running it on my android phone with the expo android app it ran smoothly, i don't know what to do please help thanks
I had the same problem and I got it fixed as follows:
Go to SDK Manager in Android studio > SDK Tools and check whether there is any update for Android SDK Build-Tools. If there is any, please make sure you update it.
Close any Android virtual device currently running and then go to Android Studio Virtual Device Manager and wipe the data of your Android virtual device.
Make sure you have enough internal storage allocated for your Android virtual device to install apps.
Check whether Android Debug Bridge utility is installed in your device. If not please install it. To install in mac, I used the below command (Assuming that you have HomeBrew installed in your mac device):
brew install android-platform-tools
Start your Android virtual device ( This step should be done before running the expo development server)
In the Developer options menu of your Android virtual device, make sure USB debugging option is enabled.
Finally, try running the development server by expo start and press on the button to run on your Android emulator.

Genymotion : Unable to create the virtual device

I'm trying to add a device on Genymotion Android Emulator, but after I select android device and press install I got this error:
Unable to create the virtual device
Server returned HTTP status code 403
Seems you are behind a proxy or have no right to download the android devices from genymotion. If you want to add a device in Genymotion, it downloads the necessary files.