flutter-intellij: Device Selector missing in IDEA UI Preview
Steps to Reproduce
Activate the new ui preview in IntelliJ IDEA and you will see that the device selector is missing.
Note: I can run my app using flutter run
in my terminal and if i deactivate the preview I can select my desktop as the device.
Version info
[✓] Flutter (Channel master, 3.1.0-0.0.pre.1841, on Fedora Linux 36 (Workstation Edition) 5.18.11-200.fc36.x86_64, locale de_DE.UTF-8)
• Flutter version 3.1.0-0.0.pre.1841 on channel master at /mnt/Data/SDK/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision ea2396eca0 (vor 2 Stunden), 2022-07-25 06:12:06 -0400
• Engine revision 1db83d265c
• Dart version 2.19.0 (build 2.19.0-33.0.dev)
• DevTools version 2.15.0
[✗] Android toolchain - develop for Android devices
✗ Unable to locate Android SDK.
Install Android Studio from: https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK components.
(or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions).
If the Android SDK has been installed to a custom location, please use
`flutter config --android-sdk` to update to that location.
[✗] 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 14.0.0 (Fedora 14.0.0-1.fc36)
• cmake version 3.22.2
• ninja version 1.10.2
• pkg-config version 1.8.0
[!] 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/linux#android-setup for detailed instructions).
[✓] IntelliJ IDEA Ultimate Edition (version 2022.2)
• IntelliJ at /home/dseelp/.local/share/JetBrains/Toolbox/apps/IDEA-U/ch-0/222.3345.90
• Flutter plugin version 69.0.5
• Dart plugin version 222.3345.108
[✓] Connected device (1 available)
• Linux (desktop) • linux • linux-x64 • Fedora Linux 36 (Workstation Edition) 5.18.11-200.fc36.x86_64
[✓] HTTP Host Availability
• All required HTTP hosts are available
! Doctor found issues in 3 categories.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 9
- Comments: 25 (9 by maintainers)
Hi Guys , Please Note that the device selector was added in Intelij EAP 2022.3 . The Following Steps Should resolve the issue.
Step 1 : Right Click on the Area Next to run button , you should see a customize toolbar popup as shown below
Step 2 : Click on Add Action
Step 3 : Type in flutter.deviceSelector, select it , and press OK.
Step 4 : Hit Apply
Step 4 : Done. You should see it appear , Happy Coding !
If you can’t find it through the search, it’s still can be found in the below Plugin >
Flutter.DeviceSelector
.Issue still exist on Official version of intellij with new UI @azeek but @qseworks tips work for me.
@qseworks i tried your fix as described. When you reopen the project, the device selector is available for a few seconds but disappears. This was the same behavior before I customized the toolbar as well.
I guess i will try to downgrade Intellij to before the UI update. I cannot find the New UI plugin or the toggle in preferences 😕 .
Official version of intellij with new UI is out. Now is the time to take care of this.
With the 2023.1 upgrade, this fix no longer works. I’m on Mac OS 13.X. I fact I can’t even on the old UI.
@uditrugman Please create a separate issue, including the output of
Tools > Flutter > Flutter Doctor
. Also include repro steps, as the problem does not occur for me.This problem is fixed in version 71.1, which is available now.
the device selector does not appear in the toolbar with the old UI. it appears for 1-2 seconds during startup and then disappears