基本上,我正在尝试在Windows 10上的Android虚拟设备上进行Flutter编程...虽然我不认为这个问题是特定于Flutter的。
启动虚拟设备后,我运行了以下命令:
flutter doctor -v
一切似乎都很好,除了
[!] Connected device
• Device emulator-5554 is not authorized.
You might need to check your device for an authorization dialog.
当我运行
flutter devices
我得到了这个:
No devices detected.
Run 'flutter emulators' to list and start any available device emulators.
当我运行时
flutter emulators
我得到
1 available emulator:
Nexus_5X_API_28
To run an emulator, run 'flutter emulators --launch <emulator id>'.
To create a new emulator, run 'flutter emulators --create [--name xyz]'.
多日来,我尝试了上述帖子中几乎所有的方法。我在谷歌上搜索过,但没有找到真正解决我的问题的任何东西:我尝试删除AVD并创建一个新的;我尝试删除adbkey文件对;我尝试杀死adb服务器并重新启动;我尝试打开和关闭调试模式/USB调试;我尝试清除AVD的数据并进行冷启动;我尝试更新SDK工具...... 我一直重复尝试这些方法,但是仍然没有成功。我想知道我做错了什么...真的希望有人能给我一些好的建议。提前感谢!注意:我是在Android Studio上创建的AVD。我在命令提示符上运行了
flutter doctor
。不知道这是否与此有关。[1]: emulator-5554未经授权用于adb设备。