当前位置: 首页 > 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.dtcms.com/a/320465.html

相关文章:

  • flutter开发(一)flutter命令行工具
  • Flutter开发 多孩子布局组件
  • 在 Debian 系统上安装 Redis服务
  • VRTE 的应用程序部署到Ubuntu上 报错:bash: ./rb_exmd: No such file or directory
  • Korg 电子琴 2025 高级电子琴手机版:专业的音乐创作与演奏工具
  • 平板探测器的主要技术指标
  • 电脑IP地址是“169.254.x.x”而无法上网的原因
  • ubuntu 22.04 使用yaml文件 修改静态ip
  • 论文阅读:AAAI 2024 ExpeL: LLM Agents Are Experiential Learners
  • openpnp - 不连接设备,只大概测试一下摄像头是否好使
  • Zabbix网络发现:自动化监控新利器
  • TestComplete 如何打造高效UI测试体系?
  • Vue开发的3D全景图效果
  • linux信号量和日志
  • 算法训练之字符串
  • 复杂水文环境下识别精度↑86%!陌讯多模态融合算法在水位监测中的优化实践
  • 四、redis入门之集群部署
  • 富士 Instax 12 和 Instax Mini 11 有什么区别?推荐购买哪一款?
  • 【JMeter】调试取样器的使用
  • 全场景音频工作流实践:Melody如何打造音源管理闭环
  • git | git bash变慢解决
  • 基于 Modbus TCP 的飞升 FSH-CF计量泵多段速控制优化研究
  • pdf文件转word免费使用几个工具
  • react+echarts实现个性化评分展示(类进度条)
  • Spark01-初识Spark
  • React+TypeScript代码注释规范指南
  • 前端开发(HTML,CSS,VUE,JS)从入门到精通!第八天(Vue框架及其安装)(完结篇) 重点 ! ! !
  • React SSR 水合问题
  • Spark在什么情况下CBO才会判断失误,如何避免
  • 零成本建站:将 Windows 电脑变身为个人网站服务器