gpt4 book ai didi

java - Android Studio 抛出 "Exception in thread "main"javax.net.ssl.SSLException : Received fatal alert: protocol_version"

转载 作者:行者123 更新时间:2023-12-03 03:30:18 29 4
gpt4 key购买 nike

我今天早上才格式化我的系统,在设置所有路径变量并完成所有设置后仍然出现此错误。

我上次格式化时没有遇到这个问题,需要帮助。

Exception in thread "main" javax.net.ssl.SSLException: Received fatal alert: protocol_version
at sun.security.ssl.Alerts.getSSLException(Unknown Source)
at sun.security.ssl.Alerts.getSSLException(Unknown Source)
at sun.security.ssl.SSLSocketImpl.recvAlert(Unknown Source)
at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source)
at org.gradle.wrapper.Download.downloadInternal(Download.java:58)
at org.gradle.wrapper.Download.download(Download.java:44)
at org.gradle.wrapper.Install$1.call(Install.java:61)
at org.gradle.wrapper.Install$1.call(Install.java:48)
at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)
at org.gradle.wrapper.Install.createDist(Install.java:48)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:128)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)

异常:Gradle 任务 assembleDebug 失败,退出代码为 1

最佳答案

此问题已解决。

首先,我将我的 jdk 从版本 7 更新到版本 8您也可以在这里下载该表格 https://www.techspot.com/downloads/5198-java-jre.html

然后更改系统环境变量中的 JAVA_HOME 路径。

之后我会建议冷关机并重新启动,这次 Android studio 会抛出错误,说许可未被接受。

打开命令提示符并运行 flutter doctor

它将向您显示确切的问题并接受所有许可。

之后你就可以开始了。

关于java - Android Studio 抛出 "Exception in thread "main"javax.net.ssl.SSLException : Received fatal alert: protocol_version",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64391576/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com