Flutter app behind corporate firewall throws TLS error during packages get

后端 未结 4 1957
Happy的楠姐
Happy的楠姐 2021-01-01 02:38

Recently have installed Flutter and exploring hello-world app. Followed all steps mentioned at https://flutter.io/get-started/ and was able to run

:: flutt

4条回答
  •  北荒
    北荒 (楼主)
    2021-01-01 03:20

    You might need to setup a self-signed certificate to make it work correctly by setting the following enviroment variables:

    On Linux:

    export DART_VM_OPTIONS="--root-certs-file={path.to.certificate.file}"

    On Windows:

    set https_proxy="--root-certs-file={path.to.certificate.file}"

提交回复
热议问题