<颤振>模拟器启动但未被android studio检测到 [英] <Flutter> emulator launched but not detected by android studio
问题描述
我是 Flutter 的初学者,我打开/打开了一个模拟器,但 android studio 没有检测到它.1
I'm a beginner in Flutter and I've an emulator opened/powered on and android studio doesn't detect it. 1
因此我无法运行任何程序,因为没有设备在运行".我已经尝试在 SDK 工具中安装Android 模拟器",但 android studio 仍然无法检测到它.
hence I can't run any program because "no device is running". I've tried installing 'Android emulator' in the SDK tools but android studio still cant detect it.
推荐答案
Android Studio 设备列表显示正在加载";并且没有连接任何设备.因此,我打开了模拟器,但无法在 Android Studio 上的模拟器上运行 flutter.5个小时后我发现原因是新的Flutter版本.
Android Studio device list shows "loading" and no devices connected. Thus, I opened emulator but I cannot run flutter on emulator on Android Studio. After 5 hours I found that the reason is the new Flutter version.
我通过选择不同版本的 Dart 和 Flutter 解决了!
您需要下载1.17.3 版本.快速下载链接:Dowloand Flutter SDK 1.17.3 版本
并切换稳定频道&Dart:2.8.4,这很重要.另外,如果你愿意,你可以查看 Flutter SDK 的所有版本:Flutter版本
And switch Stable Channel & Dart: 2.8.4, this is important. Also, if you want, you can check all versions of Flutter SDK: Flutter Versions
在 MacOS 上,只需编写终端:flutter channel stable
注意:如果这个答案对您不起作用,您可以在 Android Studio 中打开您的 Flutter 应用程序的 android 模块.当您尝试添加 Firebase 技能时,它会很有帮助.
这篇关于<颤振>模拟器启动但未被android studio检测到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!