【问题标题】:Could not resolve: org.jetbrains.pty4j:pty4j:0.9.8无法解决:org.jetbrains.pty4j:pty4j:0.9.8
【发布时间】:2021-12-12 12:02:52
【问题描述】:

在我的 build.gradle 文件中。

repositories {
maven {
url  "https://jetbrains.bintray.com/pty4j"
}
mavenCentral()

}

dependencies {

implementation group: 'org.jetbrains.pty4j', name: 'pty4j', version: '0.9.8'

}

如果我构建我的项目,它是这样的

Could not resolve org.jetbrains.pty4j:pty4j:0.9.8.

Possible solution:
 - Declare repository providing the artifact, see the documentation at 
  https://docs.gradle.org/current/userguide/declaring_repositories.html

screen shot

我该如何解决这个错误?

【问题讨论】:

    标签: gradle pty


    【解决方案1】:

    MavenCentral() 不提供该特定工件,而是由 Spring 发布存储库提供。找出哪些存储库提供给定工件的一个有用技巧是查找您的工件here 并注意提供的存储库链接。

    然后您需要将 Gradle 配置更改为:

    repositories {
        mavenCentral()
        maven { url "https://packages.jetbrains.team/maven/p/ij/intellij-dependencies" }
    }
    

    【讨论】:

    • 我试过这个答案,但没有奏效
    • 您已经解决了这个问题吗?我已经编辑了答案以添加对我有用的存储库并尝试了成功的构建
    猜你喜欢
    • 1970-01-01
    • 2018-06-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-10-11
    • 1970-01-01
    • 2016-03-30
    • 2018-04-21
    相关资源
    最近更新 更多