2017-01-17 128 views
2

當我跟進http://akhikhl.github.io/gretty-doc/Getting-started.html,I得到了一個錯誤:gradle這個+ gretty:找不到jai_core.jar

FAILURE: Build failed with an exception.

What went wrong: Could not resolve all files for configuration ':compileClasspath'.

Could not find jai_core.jar (javax.media:jai_core:1.1.3). Searched in the following locations: https://jcenter.bintray.com/javax/media/jai_core/1.1.3/jai_core-1.1.3.jar

gradle產出的版本是3.3,請幫幫我,謝謝。

回答

0

您的鏈接無法正常工作。刪除「,l」有幫助。

您的問題:它是否適合你,我不舒爾,我解決了jai_core-1.1.3.jar問題在FX Projekt的是這樣的:

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' } 
    } 

希望它有幫助。