IDEA创建时项目时发生的错误。

我今天使用IDEA做项目时发生的一个错误,这个错误使用gradle开发创建Kotlin会发生下面这个错误

Gradle Daemon started in 4 s 241 ms

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'untitled'.
> Could not resolve all artifacts for configuration ':classpath'.
   > Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.41.
     Required by:
         project : > org.jetbrains.kotlin.jvm:org.jetbrains.kotlin.jvm.gradle.plugin:1.3.41
      > Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.41.
         > Could not get resource 'https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.3.41/kotlin-gradle-plugin-1.3.41.pom'.
            > Could not GET 'https://plugins-artifacts.gradle.org/org.jetbrains.kotlin/kotlin-gradle-plugin/1.3.41/0eff171c99c60a5a26702e8e407d7af2ad2fdb5078b4c02519716ae3dc0b2594/kotlin-gradle-plugin-1.3.41.pom'.
               > PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 17s

那个大佬可以帮我看看,是为什么,有没有什么解决的办法,谢谢大家l。


版权声明:本文为MX_XXS原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。