使用flutter调试时,我的物理设备总是断开连接。我试图停止并启动adb服务器,从手机中删除剩余的应用程序,运行flutter clean,flutter升级(当前稳定在1.17.5上),然后取消选中/选中手机上的调试设置。在今天之前,一切正常,并且在模拟器上仍然可以正常工作。
Launching lib\main.dart on Redmi 5A in debug mode...
√ Built build\app\outputs\apk\debug\app-debug.apk.
Error: ADB exited with exit code -1
Performing Push Install
adb: error: failed to get feature set: device 'd526d3aa7ce5' not found
Error launching application on Redmi 5A.
Exited (sigterm)
Flutter Doctor:
[√] Flutter (Channel stable, v1.17.5, on Microsoft Windows [Version 10.0.18363.959], locale de-CH)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.0-rc2)
[√] Android Studio (version 3.6)
[√] VS Code, 64-bit edition (version 1.47.3)
[√] Connected device (2 available)
答案 0 :(得分:2)
问题出在USB调试设置中,依次转到开发人员选项和USB调试,然后在其中找到一些选项并将其打开。
答案 1 :(得分:0)
由于通过WiFi的ADB可以正常工作,因此USB电缆可能不正确。