flutter upgrade to use "--force" command
See original GitHub issueThanks for the feedback! If your issue is related to the Flutter framework itself, please open an issue at github.com/flutter/flutter.
Steps to Reproduce
Please tell us what you were doing and what went wrong I am trying to upgrade flutter but it is showing error that local file issue i want to remove every change in flutter SDK directory but unable to use "–force " command
Version info 1.5.4.hotflix-2
Please paste the output of running flutter doctor -v
here (available from the command
line or from Tools > Flutter > Flutter Doctor
). It will provide the version of the
Flutter framework as well as of the IntelliJ plugin.
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (1 by maintainers)
Top Results From Across the Web
Upgrading - Flutter documentation
This command gets the most recent version of the Flutter SDK that's available on your current Flutter channel. If you want an even...
Read more >flutter upgrade to use "--force" command - Pinterest
flutter upgrade to use "--force" command. [flutter] flutter upgrade] [Your flutter checkout has local changes that would be erased by upgrading. If you...
Read more >Upgrade/Downgrade Flutter SDK Version - Woolha
As a result, you need to change the used Flutter SDK version. Previously, Flutter has downgrade command. Unfortunately, it can't be used anymore ......
Read more >dart pub upgrade
The dart pub upgrade command supports the dart pub get options, and more. For options that apply to all pub commands, see Global...
Read more >upgrader | Flutter Package - Pub.dev
Using that text says that the minimum app version is 1.2.3 and that earlier versions of this app will be forced to update...
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
So I encountered the same problem. This probably occurred because I have my flutter SDK installed in the E:\ directory rather than default C:\ directory. This is how I solved it, 1: Check where your Flutter Sdk is present. You can do this by creating a “New project->Flutter->Flutter Sdk” (This works if you have the flutter Sdk installed and configured, If you don’t have it installed you can click on install Sdk option in the same “new Project->Flutter” window). 2: Then open Terminal by going to bottom right corner of you IDE and then clicking on terminal. 3: Change your directory to the flutter sdk’s bin location by Typing “cd _yourSdkLocation\bin”. Here replace “_yourSdkLocation” with the directory address where your flutter Sdk is present. 4: Then run “flutter upgrade --force”
Hope this Helps. 😃
In Terminal , use command
and then run ,
To remove changes in flutter directory, It will upgrade to recent flutter version