【发布时间】:2019-02-05 10:03:05
【问题描述】:
我也遇到过类似的问题:[emulator-5554 unauthorized for adb devices[1]
基本上,我正在尝试使用我的 Windows 10 在 Android 虚拟设备上进行一些颤振编程......尽管我不认为这个问题是特定于颤振的。
启动虚拟设备后,我跑了
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 设备
【问题讨论】:
标签: android flutter adb android-sdk-tools avd