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.

flutter upgrade to use "--force" command

See original GitHub issue

Thanks 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:closed
  • Created 4 years ago
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
AadeshGujjarcommented, Nov 17, 2019

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. 😃

5reactions
prudhvirajbodducommented, Jul 22, 2019

In Terminal , use command

source .bash_profile

and then run ,

flutter upgrade --force

To remove changes in flutter directory, It will upgrade to recent flutter version

Read more comments on GitHub >

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

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