⋊ ~> which android-studio
/usr/bin/android-studio
⋊ ~> flutter doctor -v
[✓] Flutter (Channel beta, v0.5.1, on Linux, locale en_US.utf8)
• Flutter version 0.5.1 at /home/dev/Apps/flutter
• Framework revision c7ea3ca377 (7 weeks ago), 2018-05-29 21:07:33 +0200
• Engine revision 1ed25ca7b7
• Dart version 2.0.0-dev.58.0.flutter-f981f09760
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.1)
• Android SDK at /home/dev/Android/Sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.1
• Java binary at: /opt/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
• All Android licenses accepted.
[✓] Android Studio (version 3.1)
• Android Studio at /opt/android-studio
• Flutter plugin version 26.0.1
• Dart plugin version 173.4700
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
[✓] IntelliJ IDEA Ultimate Edition (version 2018.1)
• IntelliJ at /home/dev/.local/share/JetBrains/Toolbox/apps/IDEA-U/ch-0/181.5540.7
• Flutter plugin version 26.0.2
• Dart plugin version 181.4892.1
[✓] Connected devices (1 available)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 9 (API 28) (emulator)
• No issues found!

/opt/android-studio is actually a directory on my system, not an executable!
looks like its only a bug on intellij. Works fine on android studio
/cc @stevemessick
I'm seeing the same on windows, also using intelliJ (2018.2.3 with plugin 28.0.4).
Exception: Cannot run program "C:\Program Files\Android\Android Studio": CreateProcess error=5, Access is denied
I can work around by setting the android studio directory to the actual file:
flutter config --android-studio-dir=C:\Program Files\Android\Android Studio\bin\studio64.exe
But that caused problems with updates so I'm just opening android studio manually now.
@rmtmckenzie your solutions works splendidly, however it did cause some issues that flutter doctor complained about, the flutter app works fine tho
Most helpful comment
I'm seeing the same on windows, also using intelliJ (2018.2.3 with plugin 28.0.4).
I can work around by setting the android studio directory to the actual file:
flutter config --android-studio-dir=C:\Program Files\Android\Android Studio\bin\studio64.exeBut that caused problems with updates so I'm just opening android studio manually now.