Cannot find runner for flutter
See original GitHub issueIssue
I cannot execute any Flutter run configurations - the run button is disabled. When I used Alt+Shift+F10 to force run, I saw the underlying error: “Cannot find runner for angel_flutter”.
So, for some reason, there is no runner available for the run configuration. I have also created other configurations, and receive the same result every time.
I don’t know what a “runner” is here, but it’s missing. No idea why.
Steps to Reproduce
- Create an IntelliJ (using WebStorm 2017.1 here) project, with more than one Dart project in it. My structure right now:
backend/ - Backend server with Angel framework
client/ Virtually untouched base Flutter app from 'flutter create' - just changed title, added one dependency
common/ - Shared model files
See the project: https://github.com/angel-example/flutter
Version info
[✓] Flutter (on Mac OS X 10.12 16A323, channel alpha)
• Flutter at /Users/tobe/flutter
• Framework revision 70536223ee (8 days ago), 2017-04-14 10:37:19 -0700
• Engine revision c24a0e5175
• Tools Dart version 1.23.0-dev.11.7
[✓] Host Executable Compatibility
• Downloaded executables execute on host
[✓] Android toolchain - develop for Android devices (Android SDK 24.0.1)
• Android SDK at /Users/tobe/Library/Android/sdk
• Platform android-24, build-tools 24.0.1
• Java binary at: /Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home/bin/java
• Java version: Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
[-] iOS toolchain - develop for iOS devices (Xcode 8.3.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 8.3.2, Build version 8E2002
✗ ideviceinstaller not available; this is used to discover connected iOS devices.
To install, run:
brew update
brew install --HEAD libimobiledevice
brew install ideviceinstaller
• ios-deploy 1.9.1
• CocoaPods version 1.2.1
[-] Android Studio (version 2.1)
• Android Studio at /Applications/Android Studio.app/Contents
✗ Gradle version 2.14.1 required. Found version 2.10.
✗ Unable to find bundled Java version.
• Try updating or re-installing Android Studio.
[-] IntelliJ IDEA Ultimate Edition (version 2016.3.4)
• Dart plugin not installed; this adds Dart specific functionality.
• Flutter plugin not installed; this adds Flutter specific functionality.
• For information about managing plugins, see
https://www.jetbrains.com/help/idea/managing-plugins.html
[✓] WebStorm (version 2017.1)
• Flutter plugin version 13.0
[✓] Connected devices
• LG K330 • LGK3302f6a56ec • android-arm • Android 5.1.1 (API 22)
I have since upgraded to Dart 1.23.0
, not sure if that has anything to do with it.
ideviceinstaller
is actually installed - I’ve installed it literally dozens of times, but it always reports that.
Thanks in advance!!!
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
How to fix Cannot find runner for main.dart with Flutter in IntelliJ
Hi! I recently started working with Flutter. · Cannot find runner for main.dart · Then, Select Languages & Frameworks. After that select Flutter...
Read more >Cannot find runner for main.dart · Issue #40040 - GitHub
You first need to locate the location of Flutter and Dart SDKs folder in your PC. For example on my Window PC: Flutter...
Read more >Android Studio can't find runner - Stack Overflow
1- Give the SDK path (to find the emulator path), Usually in User\YourUsername\AppData (is hidden by default)\Local\Android\Sdk. in File->Project structure, ...
Read more >How to fix Cannot find runner for main.dart with Flutter in IntelliJ
Solution: Set the Flutter SDK path. That's it. You are all good!!! But I thought of adding some more info just to make...
Read more >I can't find Runner/Runner directory in Flutter project-Flutter
If you open your project in Xcode by opening your_project/ios/Runner.xcodeproj there should be a Runner folder inside another Runner folder.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
you can try this , tools>> flutter>> flutter packages get >>enter your flutter sdk path >>finish .
this will get you to a configuration window, where you can select the location of the flutter installation. this will do the trick in some cases