flutterdartterminalflutter-doctorflutter-upgrade

Flutter version 3.3.2 on channel unknown at D:\flutter Upstream repository unknown


So I want to upgrade flutter version, but when I run flutter doctor, this error appears

Doctor summary (to see all details, run flutter doctor -v):
[!] Flutter (Channel unknown, 3.3.2, on Microsoft Windows [Version 10.0.19044.2130], locale en-GB)
    ! Upstream repository unknown
[√] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
[√] Chrome - develop for the web
[!] Visual Studio - develop for Windows (Visual Studio Professional 2019 16.4.5)
      workload, and include these components:
        MSVC v142 - VS 2019 C++ x64/x86 build tools
         - If there are multiple build tool versions available, install the latest
        C++ CMake tools for Windows
        Windows 10 SDK
[√] Android Studio (version 2021.3)
[√] VS Code (version 1.73.0)
[√] Connected device (3 available)
[√] HTTP Host Availability

! Doctor found issues in 2 categories.

Then when I run the flutter upgrade command, this error appears.

ProcessException: Process exited abnormally:
remote: Repository not found.
fatal: repository 'https://github.com/MuhammadFaisalIchal/Flutter-Travel-Pesawat-App.git/' not found
  Command: git fetch --tags

I know, this might be because the repository url is stuck at that web address, but I don't know how to fix it.
I don't know why the repository is stuck on the web address of the repository, because I've already deleted the repository.

How to solve this? Thanks for any advice or solution..


Solution

  • I finally managed to fix it, although currently I can do debugging and development without any problems in version 3.3.2, but in the long term there will definitely be problems, so I decided to fix it as soon as possible.

    What I did was to update the Flutter SDK files residing in my locale to the latest version, which you can get here.

    1. Rename the current Flutter SDK folder to another name (for backup purposes) example: D:\fluttersdk to D:\fluttersdk_backup
    2. You may not be able to rename it directly because this folder is used by some programs, you can follow this tutorial to solve it.
    3. Use the dynamic stable version that comes from the Github repository as the documentation says
    4. You may encounter the error if you are using a Git repository,
      fatal: detected dubious ownership in repository at 'D:/flutter' 'D:/flutter/.git' is owned by:, then you can solve it by using the command git config --global --add safe.directory D:/flutter as suggested by the error terminal
    5. Run flutter doctor
    6. Run flutter pub get

    If there are no problems, you should be able to immediately develop the application again like the beginning