Android Stuido Flutter 显示 no devices 解决方案


设置Android SDK路径

flutter config --android-sdk '你安装的SDK路径'

设置Android studio路径

flutter config --android-studio-dir '你安装的AS路径'

Android toolchain - develop for Android devices (Android SDK version 28.0.3) ! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses 出现这个报错 请输入 flutter doctor --android-licenses 回车 一路输入 y 就可以啦

注意,这样设置完后,开启虚拟机,可能打开了,但是还是使用不了,即点击小三角无效

可以使用如下方法解决:

  • Android Studio > Tools > Android > AVD Manager and select Create Virtual Device.

也就是将虚拟机,调整为 硬件加速模式。

参考文档: https://stackoverflow.com/questions/49222658/device-list-doesnt-shows-in-android-studio-using-flutter