首页 > 解决方案 > Flutter Doctor - 无法确定是否安装了 IntelliJ

问题描述

Flutter Doctor - 无法确定是否安装了 IntelliJ

我曾尝试在我的 Mac OSX 上安装颤振 2.2,但颤振医生为 IntelliJ 抛出错误。我已经在我的 MAC OSX 上安装了 IntelliJ IDEA CE。

我遵循了以下文档,但没有日志可以确认它正在搜索 IntelliJ 的文件夹。 参考手册

(base) Thomass-MacBook-Pro:JLPT thomasvimaleasok$ flutter doctor -v
[✓] Flutter (Channel stable, 2.2.0, on macOS 11.1 20C69 darwin-x64, locale
    en-IN)
    • Flutter version 2.2.0 at
      /Users/thomasvimaleasok/Projects/flutterapps/flutter
    • Framework revision b22742018b (4 days ago), 2021-05-14 19:12:57 -0700
    • Engine revision a9d88a4d18
    • Dart version 2.13.0

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/thomasvimaleasok/Library/Android/sdk
    • Platform android-30, build-tools 30.0.2
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.4, Build version 12D4e
    • CocoaPods version 1.10.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)

[✗] Cannot determine if IntelliJ is installed
    ✗ Directory listing failed

[✓] VS Code (version 1.54.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension can be installed from:
       https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (1 available)
    • Chrome (web) • chrome • web-javascript • Google Chrome 90.0.4430.212

! Doctor found issues in 1 category.

标签: flutterintellij-ideaintellij-pluginflutter-doctor

解决方案


我与这个错误斗争了一段时间,但最终为我的情况找到了解决方案。

我的应用程序文件夹中有一个不可读的文件夹(与 IntelliJ 无关)。那个位置的Asudo chmod a+rx解决了这个问题。

flutter doctor -vv出现了错误,但问题出现在执行日志的开头,而不是Cannot determine if IntelliJ is installed错误附近的任何地方。


推荐阅读