在我的设置中,Intellij Flutter 插件不支持 Java 代码。它将 Java 类视为文本文件。
有什么方法可以让 Intellij 支持我使用 Android 特定的 Java 代码?(类型检查、完成建议、导入、重构......)
这是我的颤振医生输出:
[✓] Flutter (on Linux, channel master)
• Flutter at /home/*****/flutter/flutter
• Framework revision 99ca38e988 (4 days ago), 2017-03-01 13:15:48
• Engine revision 74de13c0bd
• Tools Dart version 1.23.0-dev.2.0
[✓] Android toolchain - develop for Android devices (Android SDK 25.0.2)
• Android SDK at /home/*****/Android/Sdk
• Platform android-25, build-tools 25.0.2
• ANDROID_HOME = /home/*****/Android/Sdk
• OpenJDK Runtime Environment (build 1.8.0_121-b13)
[✓] Android Studio (version 2.2)
• Android Studio at /opt/android-studio
• Gradle version 2.14.1
[-] WebStorm (version 2016.3)
• Flutter plugin not installed; this adds Flutter specific functionality.
• For information about managing plugins, see
https://www.jetbrains.com/help/idea/managing-plugins.html
[✓] IntelliJ IDEA Ultimate Edition (version 2016.3)
• Dart plugin version 163.13137
• Flutter plugin version 0.1.11.1
[✓] Connected devices
• None