【问题标题】:Unable to locate a development device; please run 'flutter doctor' for information about installing additional components无法定位开发设备;请运行“颤振医生”以获取有关安装附加组件的信息
【发布时间】:2019-03-16 04:29:12
【问题描述】:
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel beta, v0.9.4, on Microsoft Windows [Version 6.1.7601], locale en-US)
[!] Android toolchain - develop for Android devices (Android SDK 28.0.3)
    X Android SDK file not found: C:\Users\Admin\AppData\Local\Android\Sdk\build-tools\28.0.3\aapt.
[√] Android Studio (version 3.2)
[√] Connected devices (1 available)

! Doctor found issues in 1 category.

【问题讨论】:

    标签: flutter


    【解决方案1】:

    配置你的 sdk 路径 flutter config --android-sdk /path/to/android/sdk 之后接受所有许可证 flutter doctor --android-licenses 终于跑了 flutter doctor

    【讨论】:

      【解决方案2】:

      在Android Studio中打开

      菜单 > 工具 > SDK 管理器

      切换到“SDK Tools”选项卡并检查“Android SDK Build-Tools”

      点击确定按钮。

      【讨论】:

      【解决方案3】:

      问题很慢

      我只是继续 C:\Users\Admin\AppData\Local\Android\Sdk\build-tools\28.0.3 并添加 aapt 文件。 并运行命令颤振医生

      【讨论】:

        猜你喜欢
        • 2019-03-19
        • 2021-05-21
        • 2019-04-26
        • 2019-04-09
        • 2020-09-27
        • 2019-01-22
        • 1970-01-01
        • 2020-06-05
        • 2021-03-03
        相关资源
        最近更新 更多