[Fixed] Flutter upgrade is not working in vs code and android studio [2022]

Опубликовано: 15 Февраль 2022
на канале: HDEV Coder
3,013
17

● git remote set-url origin https://github.com/flutter/flutter.git
● flutter upgrade


[flutter] flutter upgrade
ProcessException: Process exited abnormally:
remote: Repository not found.
fatal: repository 'https://github.com/..../flutter.git/' not found
Command: git fetch --tags
exit code 1

flutter upgrade is not working in vs code giving improper url as well?


It looks like you may have cloned a fork of the Flutter repository and then subsequently deleted it. Assuming you made no changes/commits, you should be able to fix it by updating the remote to the official Flutter repo:
🔥 Subscribe for more:    / @hdevcoder  

🎓More tutorials you may like
● Fix Flutter Firebase Common Problems [2022] :    • Fix Flutter Firebase Common Problems ...  
● Onboarding Screen Design from Scratch without any library:   • Flutter Onboarding Screen Design from...