IntelliJ 'New Project' - cannot select 'Linux' platform option
See original GitHub issueSteps to Reproduce
- Make sure the flutter-intellij plugin is installed, using the ‘dev’ channel.
- Start IntelliJ IDEA. Make sure it does not open directly into an existing project, but instead opens the “Welcome to IntelliJ IDEA” dialog. Close project if it opens directly to a project, which should return you to the welcome dialog.
- Select the ‘Projects’ tab on the left side.
- Select the ‘New Project’ button at the top. The ‘New Project’ dialog opens.
- Select ‘Flutter’ on the left side.
- Select the ‘Next’ button at the bottom. The next screen of the ‘New Project’ dialog will display.
- The “Platforms:” section has a checkbox for ‘Linux’, but it is unchecked, and disabled, so that it is not checkable. I’m opening this issue assuming that it should be checkable. Screenshot …
(When I mention “CLI” below I mean a terminal outside of the IDE.)
I was able to use the flutter create counter
and flutter run -d linux
commands via the CLI to create a Linux app and run it successfully.
I’ve tried restarting IntelliJ multiple times, and uninstalling/reinstalling the plugin multiple times, after confirming that Flutter was installed correctly (via snap) from the CLI previously, and that the SDKs paths were correct.
I’ve also did the flutter config --enable-linux-desktop
on the CLI command successfully.
Version info
Fedora 33 Workstation Gnome 3.38.4 Wayland
IntelliJ IDEA 2020.3.3 (Community Edition) Build #IC-203.7717.56, built on March 15, 2021 Runtime version: 11.0.10+8-b1145.96 amd64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Flutter plugin version: 55.0.4-dev.3 flutter.dev (from repository: https://plugins.jetbrains.com/plugins/dev/list)
[✓] Flutter (Channel dev, 2.1.0-12.1.pre, on Linux, locale en_US.UTF-8) • Flutter version 2.1.0-12.1.pre at /home/adrian/snap/flutter/common/flutter • Framework revision 8264cb3e8a (13 days ago), 2021-03-10 12:37:57 -0800 • Engine revision 711ab3fda0 • Dart version 2.13.0 (build 2.13.0-116.0.dev)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3) • Android SDK at /home/adrian/Programming/Android/SDK • Platform android-30, build-tools 30.0.3 • Java binary at: /opt/android-studio/jre/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593) • All Android licenses accepted.
[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome) ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[✓] Linux toolchain - develop for Linux desktop • clang version 6.0.0-1ubuntu2 (tags/RELEASE_600/final) • cmake version 3.10.2 • ninja version 1.8.2 • pkg-config version 0.29.1
[✓] Android Studio (version 4.2) • Android Studio at /opt/android-studio • 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)
[✓] Connected device (1 available) • Linux (desktop) • linux • linux-x64 • Linux
From ‘flutter config’ command via CLI … Settings: android-sdk: /home/adrian/Programming/Android/SDK enable-linux-desktop: true enable-windows-desktop: false android-studio-dir: /opt/android-studio
Issue Analytics
- State:
- Created 2 years ago
- Comments:21 (8 by maintainers)
Top GitHub Comments
@aromanelli Good points. We’re leaving this open for now. I need much better network bandwidth to do any experimentation, so I won’t be doing anything until I can get back to the office.
Thanks for all the diagnostic info.
This isn’t something the plugin can fix. It is due to the flatpak installation not including some Linux distro-specific libraries. See https://github.com/flathub/com.jetbrains.IntelliJ-IDEA-Ultimate/issues/58