Flutter upgrade command not working getting error 'You are not currently on a release branch'

1.2k views Asked by At

Flutter upgrade command not working getting error 'You are not currently on a release branch. Use git to check out an official branch ('stable', 'beta', 'dev', or 'master')'

1

There are 1 answers

1
Shrikant Tanwade On BEST ANSWER

1. Go to your flutter stored path from terminal

cd path

2. Hit command

git checkout stable

3. Hit command

flutter upgrade