@Balajiomsakthi commented on Aug 22, 2019, 8:29 AM UTC:
Hi, I tried to delete the bin/cache/ directory in my flutter. After that I am facing this issue. I can't able to run my app or start or stop.
This issue was moved by DanTup from Dart-Code/Dart-Code#1939.
@DanTup commented on Aug 22, 2019, 8:32 AM UTC:
This repository is for the VS Code extension, but this looks like an IntelliJ issue. It seems like something is running pub get that should be running flutter packages get, but I don't know enough about the IntelliJ plugin to know why that is.
I'll move this to the other repo where someone may be able to investigate.
/move flutter/flutter-intellij
@Balajiomsakthi
Bit of a stab in the dark, but
I tried to delete the bin/cache/ directory in my flutter.
I wonder if Flutter's Dart SDK is missing so it's falling back to a non-Flutter version. Try closing IntelliJ and running flutter doctor from the terminal, which should cause it to download the Dart SDK if it's missing, then try opening IntelliJ again.
@DanTup
Oh No!... Tried but still facing same issue. No improvement.
Just Holding this project and created a new project and doing. Kindly tell me if any other possible solutions are there.
I think @DanTup is on to something here. In Preferences, under Languages & Frameworks, is there a Flutter SDK set for the project?
@pq Yes! I set Flutter SDK also. And even my app is working properly but suddenly facing this issue.
In case if your error is exactly the same as given above in the title.
Follow these steps:-
1.Press [ Ctrl + Alt + S ] to open settings.
2.Open Languages and Frameworks.
After that try again clicking get dependencies and your error must be solved.
Same isue on the Github Action:

@adriens how are you setting the Flutter SDK up on GH Actions? This would happen if you only have a standard Dart SDK?
Hi @DanTup thanks for your answer. I did only click on the action and let the action run all by default. What should I look at to customize it ? 馃檹
You need an action that can set up Flutter. I've been working on one I use for the VS Code extension's integration tests that you're welcome to use on the understanding it's unofficial and support is not guaranteed (of course you could also fork the code from my gh-actions repo):
You may wish to change @master in the action to a tagged version if you don't want it changing (I use master here since I control both the action and this code, so it was easier to iterate if it always used the latest version of the action).
You'd also want to remove the if property (this is to avoid setting up Flutter for non-Flutter tests for Dart-Code) and can remove the id property if you don't need to reference it elsewhere. You can also remove with:/channel: or customise it (it defaults to stable).
This method helped me. Got to languages and frameworks, select flutter from that, add the flutter sdk path again, apply, come back and try upgrading the dependencies
In case if your error is exactly the same as given above in the title.
Follow these steps:-1.Press [ Ctrl + Alt + S ] to open settings.
2.Open Languages and Frameworks.
- Select Flutter.
- You will see a Flutter SDK path empty. Provide the location for your flutter SDK where you've downloaded your flutter from the web.
After that try again clicking get dependencies and your error must be solved.
Thanks a lot!
Same isue on the Github Action:
Did someone got a fix for this?
flutter pub get got following error in github wf

On GitHub actions, you need to set up Flutter - the offered Dart image does not include Flutter. See https://github.com/flutter/flutter-intellij/issues/3807#issuecomment-566000300.
(I don't think that's related to @balajiks-dev's original issue here though).
yeah @DanTup issue was the environment. Thanks
In case if your error is exactly the same as given above in the title.
Follow these steps:-1.Press [ Ctrl + Alt + S ] to open settings.
2.Open Languages and Frameworks.
- Select Flutter.
- You will see a Flutter SDK path empty. Provide the location for your flutter SDK where you've downloaded your flutter from the web.
After that try again clicking get dependencies and your error must be solved.
God bless you!
I think @DanTup is on to something here. In Preferences, under Languages & Frameworks, is there a Flutter SDK set for the project?
Locating SDK to where flutter was installed worked for me. Thank You.
In case if your error is exactly the same as given above in the title.
Follow these steps:-
1.Press [ Ctrl + Alt + S ] to open settings.
2.Open Languages and Frameworks.
- Select Flutter.
- You will see a Flutter SDK path empty. Provide the location for your flutter SDK where you've downloaded your flutter from the web.
After that try again clicking get dependencies and your error must be solved.God bless you!
Thank You.
Most helpful comment
In case if your error is exactly the same as given above in the title.
Follow these steps:-
1.Press [ Ctrl + Alt + S ] to open settings.
2.Open Languages and Frameworks.
After that try again clicking get dependencies and your error must be solved.