我的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如何解决这个错误?
发布于 2021-10-27 09:09:12
这个特定的伪制品不是由MavenCentral()提供的,而是由提供的。找出哪些存储库提供给定的艺术品的一个有用的技巧是查找您的艺术品这里,并注意所提供的存储库链接。
然后,您需要将Gradle配置更改为以下内容:
repositories {
mavenCentral()
maven { url "https://packages.jetbrains.team/maven/p/ij/intellij-dependencies" }
}https://stackoverflow.com/questions/69734542
复制相似问题