Flutter Got TLS error trying to find package xxx at https://pub.dev.

这篇具有很好参考价值的文章主要介绍了Flutter Got TLS error trying to find package xxx at https://pub.dev.。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

在学习Flutter的时候,遇到需要安装flutter_inappwebview依赖包,发现无法安装,控制台提示

Got TLS error trying to find package flutter_inappwebview at https://pub.dev.

经过网上查找资料,发现:

如果在中国安装flutter,配置国内镜像是很好的解决办法。 到此,解决方法找到。

配置本地环境方法

对于 Linux 和 MacOS 来说,添加如下两条环境变量即可:

export PUB_HOSTED_URL=https://pub.flutter-io.cn 
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn

对于Window

创建上述两个系统变量即可

name: PUB_HOSTED_URL; 
value: https://pub.flutter-io.cn


name: FLUTTER_STORAGE_BASE_URL; 
value: https://storage.flutter-io.cn

重新执行flutter pub add flutter_inappwebview,安装成功,问题解决。文章来源地址https://www.toymoban.com/news/detail-621041.html

到了这里,关于Flutter Got TLS error trying to find package xxx at https://pub.dev.的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包赞助服务器费用

相关文章

  • Docker指令报错的解决方法:Got permission denied while trying to connect to the Docker daemon socket at unix:/

    Docker指令报错的解决方法:Got permission denied while trying to connect to the Docker daemon socket at unix:/

            安装完docker,运行指令时,出现了以下错误提示:    Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get \\\"http://%2Fvar%2Frun%2Fdocker.sock/v1.24/version\\\": dial unix /var/run/docker.sock: connect: permission denied。意思是试图连接unix:///var/run/docker.sock:,

    2024年01月25日
    浏览(12)
  • 已解决Encountered error while trying to install package.> lxml

    已解决Encountered error while trying to install package.> lxml

    已解决(pip安装第三方模块lxml模块报错)Building wheels for collected packages: lxml Building wheel for lxml (setup.py) … error error: subprocess-exited-with-error python setup.py bdist_wheel did not run successfully. note: This error originates from a subprocess,and is likely not a problem with pip. ERROR: Failed building wheel for lxml n

    2024年02月07日
    浏览(15)
  • CMake Error at CMakeLists.txt: (FIND_PACKAGE)找不到ncnn包的解决方法

    CMake Error at CMakeLists.txt: (FIND_PACKAGE)找不到ncnn包的解决方法

    demo指路:https://github.com/EdVince/Stable-Diffusion-NCNN 在 Linux端 使用 cmake 编译文件时, 执行 cmake .. 命令,报错: 拉取 ncnn 的代码库(包括submodule)后没有 build and Install ,所以 cmake 时找不到对应的包,只需要让它找到对应的包即可,分为2步: 生成对应的cmake文件( ncnnConfig.cmake

    2024年02月11日
    浏览(105)
  • CMake Error at /opt/ros/noetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package)

    CMake Error at /opt/ros/noetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package)

    在ros中catkin_make功能包时遇到以下错误 解决办法: 终端下执行

    2024年02月12日
    浏览(13)
  • CMake Error at CMakeLists.txt:5 (find_package):By not providing “FindOpenCV.cmake“ in CMAKE_MODULE

    CMake Error at CMakeLists.txt:5 (find_package):By not providing “FindOpenCV.cmake“ in CMAKE_MODULE

    CMake Error at CMakeLists.txt:5 (find_package): By not providing \\\"FindOpenCV.cmake\\\" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by \\\"OpenCV\\\", but CMake did not find one.  CMake Error at CMakeLists.txt:5 (find_package): By not providing \\\"FindOpenCV.cmake\\\" in CMAKE_MODULE_PATH this project has asked CMake to

    2024年04月27日
    浏览(26)
  • Flink CDC报The connector is trying to read binlog starting at xxx but this is no longer available问题解决

    Flink CDC报The connector is trying to read binlog starting at xxx but this is no longer available问题解决

    问题是笔者最近在使用FlinkCDC 2.3.0 捕获MySQL binlog日志时遇到的,MySQL使用的阿里云的RDS, MysqlCDC 使用读账号以 Initinal 模式,任务已经运行了一段时间突然报的错,之前在使用FlinkCDC时也曾遇到过,设置了一些参数后没有再出现过,一直比较忙没有来得及总结下来。但是今天同

    2024年02月07日
    浏览(9)
  • Python ERROR: Could not install packages due to an OSError:XXX解决方法

    Python ERROR: Could not install packages due to an OSError:XXX解决方法

    在使用 pip 安装 python 包时,出现ERROR: Could not install packages due to an OSError: XXX 的错误,这时候主要有两种错误类型,要根据类型来解决问题 错误类型1: 特点:[WinError 5] 拒绝访问 + … + Consider using the --user option or check the permissions 错误类型2: 特点:[Errno 22] Invalid argument: + … 我原

    2024年01月25日
    浏览(19)
  • vue项目,代理请求https无响应 或 报错Error occured while trying to proxy的解决

    vue项目,代理请求https无响应 或 报错Error occured while trying to proxy的解决

    公司最近的项目测试环境需要将http为一个https了,于是将自签名证书导入到iis服务(由于后端由NetCore WebApi编写),绑定网站SSL,然后前端使用本地代理切换请求地址之后就发现请求没法正常返回,前端调试没有任何返回响应,有的浏览器会返回: Error occured while trying to pro

    2024年02月16日
    浏览(16)
  • 解决error: failed to push some refs to ‘https://gitee.com/xxx.git‘

    在 git 执行命令git push origin master时候报错 error: failed to push some refs to \\\"https://gitee.com/xxx.git\\\" 根本原因是远程仓库和本地仓库内容不同,将远程仓库中不同的内容pull到本地,就好了。 解决方法: 将初始化文件同步到本地,然后再次执行 git push origin master

    2024年02月12日
    浏览(36)
  • error: failed to push some refs to ‘https://gitee.com/xxx/practice.git‘

    error: failed to push some refs to \\\'https://gitee.com/xxx/practice.git\\\'  To https://gitee.com/xxx/practice.git hint: Updates were rejected because the remote contains work that you do hint: not have locally. This is usually caused by another repository pushing ! refs/heads/master:refs/heads/master [rejected] (fetch first) hint: to the same ref. You may want

    2024年02月03日
    浏览(33)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包