flutter - 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.
解决方案
我与这个错误斗争了一段时间,但最终为我的情况找到了解决方案。
我的应用程序文件夹中有一个不可读的文件夹(与 IntelliJ 无关)。那个位置的Asudo chmod a+rx
解决了这个问题。
flutter doctor -vv
出现了错误,但问题出现在执行日志的开头,而不是Cannot determine if IntelliJ is installed
错误附近的任何地方。
推荐阅读
- angular - 如何从 Angular Material 更新 mat-table 数据
- azure - Microsoft.Azure.Management.Resourcemanager.Fluent 和 Microsoft.Azure.Management.Fluent nuget 包有什么区别?
- ruby-on-rails - 如何在 Rails 6 (Mac OSX) 中加载 bootstrap-sass
- javascript - 如何在制表器中右对齐表头?
- java - Spring Batch 和我的 Batis:MyBatisBatchItemWriter 抛出 IllegalArgumentException:参数类型不匹配
- delphi - Delphi XE8 - 本机 Wifi API - Wlan API - 从 WLAN_HOSTED_NETWORK_REASON 获取价值
- python - 我想知道为什么魔术函数会为特定的运算符给出特定的答案
- angular - 如何通过 Visual Studio 2017 为 .Net Core 2.1 项目添加 Angular Material
- git - 将 sql server 数据库提交到源代码控制
- laravel - 我正在使用 jorenvanhocht/laravel-share 包使用 laravel 共享,但是当我在社交网站上共享时它不显示预览或缩略图