我用的是windows,遇到了這錯誤,
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. For more on this, please refer to https://docs.gradle.org/8.6/userguide/build_environment.html#sec:gradle_system_properties in the Gradle documentation.
問了文心一言,給我胡說八道。 讓我設置我?TLSv1.1。 實際是不行的。 我改為?TLSv1.2后,成功通過編譯。
具體的解決辦法是:
在 build.gradle.kts中,指定低版本的 TLS協議
System.setProperty("https.protocols", "TLSv1.2")