I have recently upgraded my flutter version in my app. But when I want to debug the application, it shows me the following error.
Error connecting to the service prot
Like Vitaly says ..
I am also struggling to force this error at all when building through Xcode for iOS and I imagine the same goes for Android with Android studio..
For iOS do flutter build ios --release
and then open/run the project in Xcode
For Android do flutter build apk --release
and then open/run the project in Android Studio
It seems to be an issue when debugging through flutter ... I will update this answer if I find otherwise but it seems stable with this method