【问题标题】:Is there any solution to get the device connected as my Emulator and run the output?Flutter run:No Devices Connected是否有任何解决方案可以将设备连接为我的模拟器并运行输出?颤振运行:未连接设备
【发布时间】:2020-01-27 02:27:19
【问题描述】:

Click here to load the screenshot of Android studio

我是 Flutter 的新手,我无法在 Android Studio 中运行输出,因为它显示没有连接任何设备...但是我安装了 Pixel 3a 的模拟器,如上面的屏幕截图所示,它还说我的模拟器不适用于 main。飞镖配置

这是CMD中的输出

flutter run:  

No connected devices.

the output of flutter doctor:

Doctor summary (to see all details, run flutter doctor -v):
    [√] Flutter (Channel stable, v1.9.1+hotfix.2, on Microsoft Windows [Version 
    10.0.17134.950], locale en-IN)
    [√] Android toolchain - develop for Android devices (Android SDK version 
    29.0.0)
    [√] Android Studio (version 3.5)
    [!] VS Code (version 1.37.1)
        X Flutter extension not installed; install from
          https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
    [!] Connected device
        ! No devices available

! Doctor found issues in 2 categories.

是否有任何解决方案可以将设备连接为我的模拟器并运行输出? 如何以其他方式运行我的输出?最好通过虚拟模拟器!

【问题讨论】:

标签: android android-studio flutter dart android-emulator


【解决方案1】:
  1. 转到 android studio 上的 AVD Manager(Android 垂直设备管理器)。

  2. 点击操作行上的播放按钮

如何打开 AVD Manager[https://developer.android.com/studio/run/managing-avds]

【讨论】:

    【解决方案2】:

    大多数此类错误都可以通过更新 Android Studio 得到解决。您可以通过选择 Help > Check for Updates(Android Studio > Check for Updates on macOS)获取更新

    【讨论】:

      猜你喜欢
      • 2020-10-21
      • 2018-08-09
      • 1970-01-01
      • 1970-01-01
      • 2019-06-28
      • 2021-06-26
      • 2015-08-13
      • 2021-02-04
      • 1970-01-01
      相关资源
      最近更新 更多