Error connecting to the service protocol

538 views
Skip to first unread message

Steepe Hare

unread,
Apr 28, 2021, 4:00:21 PM4/28/21
to Flutter Development (flutter-dev)
Hello,

My environment: 
Flutter 2.0.4, Dart 2.12.2
Android SDK version 30.0.3
Android Studio 4.1.3
Ubuntu 18.04

Flutter doctor says there are no issues.

I connected my Phone (Samsung) to PC.
Very often (about 90%) I receive this error message in Android Studio console:

Launching lib/main.dart on GT I9500 in debug mode...
Running Gradle task 'assembleDebug'...
Built build/app/outputs/flutter-apk/app-debug.apk.
Installing build/app/outputs/flutter-apk/app.apk...
Error connecting to the service protocol: failed to connect to ...

How can I solve this problem? This is very time-consuming. Thanks.
Reply all
Reply to author
Forward
0 new messages