I am unable to upgrade flutter with following error:
Process Exception: Process exited abnormally: fatal: unable to access 'https://github.com/flutter/flutter.git/': Failed to connect to github.com port 443: Bad access Command: git fetch --tags
When I run flutter doctor -v
, I get following:
[√] Flutter (Channel stable, 2.10.2, on Microsoft Windows [Version 10.0.22000.493], locale en-IN)
• Flutter version 2.10.2 at F:\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 097d3313d8 (2 days ago), 2022-02-18 19:33:08 -0600
• Engine revision a83ed0e5e3
• Dart version 2.16.1
• DevTools version 2.9.2
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
• Android SDK at F:/androidsdk
• Platform android-31, build-tools 30.0.2
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 11.0.11 9-b60-7590822)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
[X] Visual Studio - develop for Windows
X Visual Studio not installed; this is necessary for Windows development.
Download at https://visualstudio.microsoft.com/downloads/.
Please install the "Desktop development with C " workload, including all of its default components
[√] Android Studio (version 2021.1)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.11 9-b60-7590822)
[√] VS Code (version 1.49.3)
• VS Code at C:\Users\Anirban\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.15.0
[√] Connected device (3 available)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.22000.493]
• Chrome (web) • chrome • web-javascript • Google Chrome 98.0.4758.102
• Edge (web) • edge • web-javascript • Microsoft Edge 98.0.1108.56
[!] HTTP Host Availability
X HTTP host https://maven.google.com/ is not reachable. Reason: An error occurred while checking the HTTP host: A
request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied.
X HTTP host https://pub.dev/ is not reachable. Reason: An error occurred while checking the HTTP host: A request to
send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket
using a sendto call) no address was supplied.
X HTTP host https://cloud.google.com/ is not reachable. Reason: An error occurred while checking the HTTP host: A
request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied.
! Doctor found issues in 2 categories.
How do I solve this problem? I have Bitdefender installed on my system - is it possible that Bitdefender is blocking something?
CodePudding user response:
Here are some points to check:
- Disable Antivirus or some defender software
- Allow firewall
- check for other requred dependency/dependencies to be installed properly (not neccessary)
- clear cache
- delete .lockfile (sometime it needs to be deleted)
- use
--force
flag to upgrade sdk. i.e.,flutter upgrade --force
CodePudding user response:
This is resolved. Bitdefender was blocking Flutter. Thanks everyone.