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.

Cannot find runner for flutter

See original GitHub issue

Issue

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

  1. 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:closed
  • Created 6 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

55reactions
omar1betarcommented, Sep 28, 2018

you can try this , tools>> flutter>> flutter packages get >>enter your flutter sdk path >>finish .

1reaction
sart1991commented, Nov 30, 2019

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

Read more comments on GitHub >

github_iconTop 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 >

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