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



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

我曾尝试在Mac OSX上安装flutter 2.2,但flutter医生为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.

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

我的Applications文件夹中有一个文件夹(与IntelliJ无关(不可读。该位置的sudo chmod a+rx解决了问题。

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

相关内容

  • 没有找到相关文章

最新更新