【问题标题】:Flutter: Android Studio not found at /Applications/ContentsFlutter:在 /Applications/Contents 中找不到 Android Studio
【发布时间】:2018-08-07 21:55:54
【问题描述】:

安装flutter后,当我运行时

我认为我在运行 Android Studio 时弄乱了我的 Mac Flutter 医生报告说找不到 Android Studio,如下所示

Android Studio not found at /Applications/Contents

颤振医生-v

我该怎么办?

【问题讨论】:

  • 试试这个颤振配置 --android-studio-dir= 如果它不起作用,请在这里告诉我

标签: android-studio flutter dart android-sdk-tools


【解决方案1】:

请运行flutter config --android-studio-dir=/Applications/Android\ Studio.app

【讨论】:

  • 你能@Rody 解释一下这个命令的作用吗?
【解决方案2】:

正如@Akshay 所说,运行flutter config --android-studio-dir=/Application/Android\ Studio.app。当我以这种方式运行配置命令时,我遇到了同样的问题:flutter config --android-studio-dir=/Application/

【讨论】:

    【解决方案3】:

    我相信当你使用 JetBrains 工具箱安装 Android Studio 时,密码是不同的,我的密码是在“Applications/JetBrains\ Toolbox/Android\ Studio.app/Contents”

    所以,解决它:

    flutter config --android-studio-dir=/Users/<$YOUR_USER>/Applications/JetBrains\ Toolbox/Android\ Studio.app/Contents
    

    【讨论】:

      猜你喜欢
      • 2021-08-22
      • 1970-01-01
      • 2022-11-09
      • 2021-05-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-02-15
      • 2020-08-05
      相关资源
      最近更新 更多