Facing issue in a specfic flutter project while running over my ios device in flutter - flutter

Failed to establish a debug connection with 661e647d32d2bf1e57a60abeedda37a0af480e22 using mdns: Invalid argument(s): Cannot find executable for /Users/khattab/Desktop/flutter/bin/cache/artifacts/usbmuxd/iproxy.

There is no artifact, so probably build failed. You should check your debug console to see what is the exact problem.

Related

Could not find apksig-7.1.3.jar in android studio

I'm trying to sync build.gradle for a flutter app in android studio but it gave this error
this error comes after I tried solving "ssl peer shut down incorrectly" error using the first answer in this question .
I followed all three steps of that solution but without adding the certificates and then I reconverted the steps but I remained with the same error.
Then I was trying to upgrade the gradle but it was interuppted and then the above error occured.

What went wrong: Execution failed for task ':app:validateSigningDebug'

here is the exception I get when I try to run simple flutter app on my physical device
I was working flutter projects on Android studio and run it successfully , but after I update it with flutter and dart , I coudn't even run a simple app .. it requires me a unique application Id
here is how my build.gradle file looks like with the to do hint
The error says Failed to create keystore, please refer to this answer

Flutter build error: Error connecting to the service protocol: failed to connect to http://127.0.0.1:51234/v9-zOlh23aE=/

My app build failed with the following build error:
√ Built build\app\outputs\flutter-apk\app-debug.apk.
D/FlutterLocationService(29765): Creating service.
D/FlutterLocationService(29765): Binding to location service.
Error connecting to the service protocol: failed to connect to http://127.0.0.1:51234/v9-zOlh23aE=/
Exited (sigterm)
this happened after pub upgrade.
Though this issue seems to be common and can be caused by various situations, maybe you should check whether the SDK is selected.
In Android Studio, you can set the SDK in File -> Project Structure -> Project SDK, which works in my case.
Or else you can also try flutter clean && flutter upgrade.

Flutter Web crashes with Cannot open file client.js

May I ask your help about this error
It's happen when I'm trying for the first time running my flutter web which using flutter run -d chrome
Launching lib\main.dart on Chrome in debug mode...
Syncing files to device Chrome...
25,220ms (!)
GET /dwds/src/injected/client.js
Error thrown by handler.
FileSystemException: Cannot open file, path = 'C:\Users\Acer\flutter\.pub-cache\hosted\pub.dartlang.org\dwds-2.0.1\lib\src\injected\client.js' (OS Error: The system cannot find the path specified.
, errno = 3)
dart:isolate _RawReceivePortImpl._handleMessage
And if I trying run using
flutter run -d web
It's doesn't thrown any error but on the website it goes blank white nothing shown up.
Anyway thanks for your help
adding the following in the pubspec.yaml worked for me. I am using beta channel.
dependencies:
dwds: ^16.0.1
then run command:
flutter update-packages
I was also facing the same issue, I don't know the exact root cause of the problem but I have a hack to make it work.
I was facing the issue after I deleted .pub-cache folder, so from my recycler bin I picked dwds-2.0.1 folder and reverted back. This hack working
add dwds package in your dependencies and run flutter update-packages. It will work :)

Flutter sample build issue

I am getting this error when trying to run the sample first_app in flutter after opening it in VS CODE.
=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
/Users/ts/Documents/Dev/first_app/build/ios/Debug-iphonesimulator/Runner.app: resource fork, Finder information, or similar
detritus not allowed
Command /usr/bin/codesign failed with exit code 1
Could not build the application for the simulator.
Error launching application on iPhone 8.
Does anyone know what could be causing this? Thanks!