Reputation: 3760
I am trying to use wireless debugging on my Samsung S10e and it works sometimes. For some reason, it looks like it keeps disconnecting and connecting again frequently. Sometimes, it stays disconnected. I then have to go to developer settings and switch wireless debugging off and on. Often, it happens when I try to launch the app, and in effect, it fails.
Example log output:
Launching lib/main.dart on SM G970F in debug mode...
Running Gradle task 'assembleDebug'...
✓ Built build/app/outputs/flutter-apk/app-debug.apk.
Installing build/app/outputs/flutter-apk/app-debug.apk...
Error: ADB exited with exit code 1
adb: device offline
Error launching application on SM G970F.
Launching lib/main.dart on SM G970F in debug mode...
Running Gradle task 'assembleDebug'...
✓ Built build/app/outputs/flutter-apk/app-debug.apk.
Installing build/app/outputs/flutter-apk/app-debug.apk...
Error: ADB exited with exit code 1
Performing Streamed Install
adb: failed to install /Users/gustek/my-github/liveness_mlkit/build/app/outputs/flutter-apk/app-debug.apk:
Error launching application on SM G970F.
Sometimes, the error is different. Often, another error I see is "failed uninstalling previous version." I am not sure if that one is related, I delete the app manually in these cases.
I think it may be something with the phone. Or maybe router settings making the connection unreliable? The most notable indication of the issue is that my phone keeps vibrating with the. "wireless debugging connected" notification that I can see is going away and coming back almost instantly very frequently.
Any ideas, or suggestions on what may be the cause?
The phone is: Samsung S10e, Android 12
ADB version:
Android Debug Bridge version 1.0.41
Version 33.0.3-8952118
I don't remember now, but I believe adb is managed by Android Studio
Android Studio Flamingo | 2022.2.1 Patch 2
Build #AI-222.4459.24.2221.10121639, built on May 12, 2023
Runtime version: 17.0.6+0-17.0.6b802.4-9586694 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Upvotes: 5
Views: 1742