简体   繁体   English

Flutter Doctor如何识别便携式Intellij IDEA Ultimate?

[英]How make a portable Intellij IDEA Ultimate be recognised by Flutter Doctor?

I used to have a portable development environment.我曾经有一个可移植的开发环境。 Where I have a IntelliJ IDEA Ultimate installed in a External SSD Drive ( https://portapps.io/app/intellij-idea-ultimate-portable/ ).我在外部 SSD 驱动器( https://portapps.io/app/intellij-idea-ultimate-portable/ )中安装了 IntelliJ IDEA Ultimate。 I'm starting to code in Flutter and I having this issue.我开始在 Flutter 中编码,我遇到了这个问题。

When I run "flutter doctor -v", the flutter doesn't recognise the portable version (and I understand, because is not in the default directory).当我运行“flutter doctor -v”时,flutter 无法识别便携式版本(我理解,因为不在默认目录中)。

The question is, how to make flutter doctor recognise this external installation (from zip file)?问题是,如何让 flutter 医生识别这个外部安装(来自 zip 文件)?

I have everything configured correctly, here is my current "flutter doctor -v" output:我已经正确配置了一切,这是我当前的“颤振医生 -v”output:

[√] Flutter (Channel stable, v1.17.5, on Microsoft Windows [Version 10.0.18363.900], locale en-GB)
    • Flutter version 1.17.5 at Z:\SDK\Flutter
    • Framework revision 8af6b2f038 (10 days ago), 2020-06-30 12:53:55 -0700
    • Engine revision ee76268252
    • Dart version 2.8.4


[√] Android toolchain - develop for Android devices (Android SDK version 30.0.1)
    • Android SDK at Z:\SDK\Android
    • Platform android-30, build-tools 30.0.1
    • ANDROID_HOME = Z:\SDK\Android
    • Java binary at: Z:\SDK\OpenJDK\bin\java
    • Java version OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_252-b09)
    • All Android licenses accepted.

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).

[!] Connected device
    ! No devices available

! Doctor found issues in 2 categories.

You're free to use IntelliJ (or any other IDE) for flutter development, but it won't satisfy the checks made by flutter doctor.您可以自由使用 IntelliJ(或任何其他 IDE)进行 flutter 开发,但它不能满足 flutter 医生所做的检查。 It's looking specifically for Android Studio.它专门寻找 Android Studio。 If you want to use IntelliJ then you have to live with flutter doctor's warnings about Android Studio not being installed.如果您想使用 IntelliJ,那么您必须忍受 flutter 医生关于未安装 Android Studio 的警告。

If you want to use a portable version of Android Studio then use the command如果您想使用 Android Studio 的便携式版本,请使用命令

flutter config --android-studio-dir "Z:\MyPortableApps\AndroidStudio"

with the path to your portable application.与您的便携式应用程序的路径。

If you want to see what has been configured then just use flutter config without any parameters.如果您想查看已配置的内容,则只需使用不带任何参数的flutter config The output starts with a load of usage text but at the end you'll find a section with the heading Settings: listing anything that has been set. output 以大量使用文本开头,但最后您会找到一个标题为“设置”的部分:列出已设置的任何内容。 A new install won't have anything set and will just use defaults.新安装不会设置任何内容,只会使用默认值。

To later unset a value use a quoted empty string "" in the same command.要稍后取消设置值,请在同一命令中使用带引号的空字符串“”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM