所以我开始在我的ADB日志中收到错误,我认为这会导致我的设备现在显示我的应用程序的任何logcat输出.我得到所有的logcat输出,除了应用程序本身的输出.
PropertyFetcher: AdbCommandRejectedException getting properties for device 04799057970ed1fc: device offline
PropertyFetcher: AdbCommandRejectedException getting properties for device 03799467970ed5fg: device unauthorized. Please check the confirmation dialog on your device.
Run Code Online (Sandbox Code Playgroud) 我遇到过类似的问题:[ emulator-5554 未经授权用于 adb 设备[1]
基本上,我正在尝试使用我的 Windows 10 在 Android 虚拟设备上进行一些颤振编程......尽管我认为这个问题不是颤振特有的。
启动虚拟设备后,我跑了
flutter doctor -v
Run Code Online (Sandbox Code Playgroud)
一切似乎都很好,除了
[!] Connected device
• Device emulator-5554 is not authorized.
You might need to check your device for an authorization dialog.
Run Code Online (Sandbox Code Playgroud)
当我跑
flutter devices
Run Code Online (Sandbox Code Playgroud)
我明白了:
No devices detected.
Run 'flutter emulators' to list and start any available device emulators.
Run Code Online (Sandbox Code Playgroud)
当我跑
flutter emulators
Run Code Online (Sandbox Code Playgroud)
我得到
1 available emulator:
Nexus_5X_API_28
To run an emulator, run 'flutter emulators --launch <emulator id>'.
To create a new emulator, run 'flutter …Run Code Online (Sandbox Code Playgroud) android adb android-virtual-device android-sdk-tools flutter