我最近将Kotlin 1.1.1添加到我的项目中,该项目在OS X上工作正常。我将其同步到Ubuntu框,并尝试在我的构建上运行任何gradle命令:
mystr
我尝试了两种配置方法,包括:
A problem occurred configuring root project 'myproject'.
> Could not resolve all dependencies for configuration ':classpath'.
> Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.1.1.
Required by:
project :
> Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.1.1.
> Could not get resource 'https://repo1.maven.org/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.1.1/kotlin-gradle-plugin-1.1.1.pom'.
> Could not HEAD 'https://repo1.maven.org/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.1.1/kotlin-gradle-plugin-1.1.1.pom'.
> java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
和
buildscript {
ext.kotlin_version = '1.1.1'
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
我做错了什么?