skip to Main Content

Got the following result when I ran flutter doctor.
Network resources
X A cryptographic error occurred while checking "https://pub.dev/": Handshake error in client
You may be experiencing a man-in-the-middle attack, your network may be compromised, or you may have malware installed on your computer.
X A cryptographic error occurred while checking "https://storage.googleapis.com/": Handshake error in client You may be experiencing a man-in-the-middle attack, your network may be compromised, or you may have malware
installed on your computer.
X A cryptographic error occurred while checking "https://maven.google.com/": Handshake error in client You may be experiencing a man-in-the-middle attack, your network may be compromised, or you may have malware installed on your computer.

When I tried to run flutter doctor (as I was getting some errors loading network image in an app) I ran into some issues in network resources part .

2

Answers


  1. This is the only valid thing I found.

    Quoting from the link above:

    first i deleted flutter folder and unzip the below download link to C:/Dev/flutter
    https://storage.googleapis.com/flutter_infra/releases/beta/windows/flutter_windows_v0.8.2-beta.zip
    and in environment variables in path i Added new path C:/Dev/flutter/bin
    and run flutter doctor in git command so it’s working now

    I would try also a complete scan for malwares in your computer.

    Check the link, scan your computer and let me know if this solved your problem.

    Login or Signup to reply.
  2. class MyHttpOverrides extends HttpOverrides {
      @override
      HttpClient createHttpClient(SecurityContext? context) {
        return super.createHttpClient(context)
          ..badCertificateCallback =
              (X509Certificate cert, String host, int port) => true;
      }
    }
    

    Future<void> main() async {
      HttpOverrides.global = MyHttpOverrides();
    
    }
    

    add this in main.dart

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search