当前位置: 首页 > news >正文

flutter TLS protocol versions: (TLSv1.2, TLSv1.3)

flutter在运行android版本时报错。

报错信息

核心信息

The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3)
Remote host terminated the handshake

全部报错信息

 flutter run -d c2b212eb0806   [11:01:41]
Launching lib/main.dart on Redmi 8A in debug mode...FAILURE: Build failed with an exception.* What went wrong:
A problem occurred configuring project ':permission_handler_android'.
> Could not resolve all files for configuration ':permission_handler_android:classpath'.> Could not resolve org.checkerframework:checker-qual:3.12.0.Required by:project :permission_handler_android > com.android.tools.build:gradle:8.0.0 > org.tensorflow:tensorflow-lite-metadata:0.1.0-rc2> Skipped due to earlier error> Could not resolve org.checkerframework:checker-qual:3.12.0.> Could not get resource 'https://repo.maven.apache.org/maven2/org/checkerframework/checker-qual/3.12.0/checker-qual-3.12.0.pom'.> Could not GET 'https://repo.maven.apache.org/maven2/org/checkerframework/checker-qual/3.12.0/checker-qual-3.12.0.pom'.> The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/7.5/userguide/build_environment.html#gradle_system_properties> Remote host terminated the handshake> Could not resolve com.android:signflinger:8.0.0.Required by:project :permission_handler_android > com.android.tools.build:gradle:8.0.0 > com.android.tools.build:builder:8.0.0> Could not resolve com.android:signflinger:8.0.0.> Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/signflinger/8.0.0/signflinger-8.0.0.pom'.> Could not GET 'https://dl.google.com/dl/android/maven2/com/android/signflinger/8.0.0/signflinger-8.0.0.pom'.> The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/7.5/userguide/build_environment.html#gradle_system_properties> Remote host terminated the handshake> Could not resolve com.android:signflinger:8.0.0.> Could not get resource 'https://repo.maven.apache.org/maven2/com/android/signflinger/8.0.0/signflinger-8.0.0.pom'.> Could not GET 'https://repo.maven.apache.org/maven2/com/android/signflinger/8.0.0/signflinger-8.0.0.pom'.> The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/7.5/userguide/build_environment.html#gradle_system_properties> Remote host terminated the handshake> Could not resolve com.android.tools.analytics-library:tracker:31.0.0.Required by:project :permission_handler_android > com.android.tools.build:gradle:8.0.0 > com.android.tools.build:builder:8.0.0> Could not resolve com.android.tools.analytics-library:tracker:31.0.0.> Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/analytics-library/tracker/31.0.0/tracker-31.0.0.pom'.> Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/analytics-library/tracker/31.0.0/tracker-31.0.0.pom'.> The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/7.5/userguide/build_environment.html#gradle_system_properties> Remote host terminated the handshake> Could not resolve com.android.tools.analytics-library:tracker:31.0.0.> Could not get resource 'https://repo.maven.apache.org/maven2/com/android/tools/analytics-library/tracker/31.0.0/tracker-31.0.0.pom'.> Could not GET 'https://repo.maven.apache.org/maven2/com/android/tools/analytics-library/tracker/31.0.0/tracker-31.0.0.pom'.> The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/7.5/userguide/build_environment.html#gradle_system_properties> Remote host terminated the handshake> Could not resolve com.android.tools.build:manifest-merger:31.0.0.Required by:project :permission_handler_android > com.android.tools.build:gradle:8.0.0 > com.android.tools.build:builder:8.0.0> Could not resolve com.android.tools.build:manifest-merger:31.0.0.

原因分析

🧱 使用了 旧版的 JDK(如 JDK 8),但服务器要求 TLS 1.2/1.3;

解决办法

我把jdk8换成了jdk11就解决了。

http://www.lryc.cn/news/614275.html

相关文章:

  • 【数据结构】排序(sort) -- 计数排序
  • 在 Elasticsearch/Kibana (ELK Stack) 中搜索包含竖线 (|)​​ 这类特殊字符的日志消息 (msg 字段) ​确实需要转义
  • 软件包管理、缓存、自定义 YUM 源
  • Vulnhub drippingblues 靶场复现 详细攻略
  • 强光干扰下误报率↓82%!陌讯多模态融合算法在高空抛物检测的实战优化
  • 自适应反步控制:理论与设计
  • 分布式微服务--GateWay的断言以及如何自定义一个断言
  • MySQL 配置性能优化赛:核心策略与实战技巧
  • 分布式系统性能优化实战:从瓶颈定位到架构升级
  • 前端后端之争?JavaScript和Java的特性与应用场景解析
  • Microsoft Dynamics AX 性能优化解决方案
  • 用JOIN替代子查询的查询性能优化
  • 深入解析基于Zookeeper分布式锁在高并发场景下的性能优化实践指南
  • DataFun联合开源AllData社区和开源Gravitino社区将在8月9日相聚数据治理峰会论坛
  • AI漫画翻译器-上传图片自动翻译,支持多语言
  • 分享超图提供的、很不错的WebGIS学习资源
  • 从安卓兼容性困境到腾讯Bugly的救赎:全链路崩溃监控解决方案-卓伊凡|bigniu
  • 什么是局放?局放在线智能传感器,敏锐洞察电气设备中的隐形故障!
  • bytearray和bytes
  • 进程管理、系统高负载、cpu超过800%等实战问题处理
  • 【Mybatis入门】配置Mybatis(IDEA)
  • scratch笔记和练习-第11课:穿越峡谷
  • [Linux]学习笔记系列 -- [arm[kernel]
  • Godot ------ 中级人物血条制作02
  • ABP VNext + Fody AOP:编译期织入与性能监控
  • 当服务器多了时,如何管理?
  • 服务器快照与备份的本质区别及正确使用指南 (2025)
  • Linux 内核发包流程与路由控制实战
  • VMwareWorkstation17Pro安装CentOS8无法连接外网问题
  • python使用python-docx自动化操作word