question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

IntelliJ 'New Project' - cannot select 'Linux' platform option

See original GitHub issue

Steps to Reproduce

  1. Make sure the flutter-intellij plugin is installed, using the ‘dev’ channel.
  2. 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.
  3. Select the ‘Projects’ tab on the left side.
  4. Select the ‘New Project’ button at the top. The ‘New Project’ dialog opens.
  5. Select ‘Flutter’ on the left side.
  6. Select the ‘Next’ button at the bottom. The next screen of the ‘New Project’ dialog will display.
  7. 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 … Screenshot from 2021-03-23 23-01-27

(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:closed
  • Created 2 years ago
  • Comments:21 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
stevemessickcommented, Mar 29, 2021

@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.

0reactions
stevemessickcommented, Sep 3, 2021

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create a new project | IntelliJ IDEA Documentation - JetBrains
Launch IntelliJ IDEA. If the Welcome screen opens, click New Project. Otherwise, from the main menu, select File | New | Project. From...
Read more >
Advanced configuration | IntelliJ IDEA Documentation
From the main menu, select Help | Edit Custom VM Options. · If you do not have any project open, on the Welcome...
Read more >
IntelliJ IDEA - Connect and work with JetBrains Gateway
In the JetBrains Gateway wizard, select SSH from the options on the left. In the search field enter the name of your project...
Read more >
Unable to Create New Project – IDEs Support (IntelliJ Platform)
I have the Java installation perfectly configured. The new project button doesn't work from anywhere. I have tried re-installing (both Toolbox ...
Read more >
IntelliJ IDEA - Project structure settings - JetBrains
or select File | Project Structure ( Ctrl+Alt+Shift+S ) from the main menu. Project page of the Project Structure dialog. Project SDK.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found