2

当我跟进http://akhikhl.github.io/gretty-doc/Getting-started.html时,出现错误:

FAILURE:构建失败并出现异常。

出了什么问题:无法解析配置“:compileClasspath”的所有文件。

找不到 jai_core.jar (javax.media:jai_core:1.1.3)。在以下位置搜索: https ://jcenter.bintray.com/javax/media/jai_core/1.1.3/jai_core-1.1.3.jar

gradle的版本是3.3,请帮帮我,谢谢。

4

2 回答 2

0

好吧,我尝试了上面的存储库条目,但它似乎对我不起作用。对我有用的是下面的代码。

    repositories {
     maven {
            url = uri("https://nexus.geomatys.com/repository/geotoolkit/")
     }
     mavenCentral()
   }

在我在自定义存储库之后添加 mavenCentral() 之前,它似乎也不起作用。我也使用了 kotlin build.gradle 所以可能需要翻译成 gradle 的 dsl

于 2022-01-27T19:26:37.153 回答
-1

我在这样的 fx 项目中解决了 jai_core-1.1.3.jar 的问题:

repositories {
    maven {
            url "https://repo1.maven.org/maven2"
            artifactUrls  "http://maven.geotoolkit.org"
     }
}

作为 build.gradle 中的替代品:

repositories {
    jcenter()
    // enable this to use snapshot versions of Gretty:
    // maven { url 'http://oss.jfrog.org/artifactory/oss-snapshot-local' }
  }

希望能帮助到你。

于 2017-04-22T16:47:23.983 回答