我已經克隆了一個 repo,我正在嘗試打開它,但是我收到了這個錯誤,我不知道如何解決它。我試過谷歌搜索,但仍然不知道該怎么做。
完整錯誤:
A problem occurred configuring root project 'java-score-examples'.
> Could not resolve all artifacts for configuration ':classpath'.
> Could not resolve foundation.icon:gradle-javaee-plugin:0.7.9.
Required by:
project :
> No matching variant of foundation.icon:gradle-javaee-plugin:0.7.9 was found. The consumer was configured to find a runtime of a component compatible with Java 8, packaged as a jar, and its dependencies declared externally but:
- Variant 'apiElements' capability foundation.icon:gradle-javaee-plugin:0.7.9 declares a component, packaged as a jar, and its dependencies declared externally:
- Incompatible because this component declares an API of a component compatible with Java 11 and the consumer needed a runtime of a component compatible with Java 8
- Variant 'runtimeElements' capability foundation.icon:gradle-javaee-plugin:0.7.9 declares a runtime of a component, packaged as a jar, and its dependencies declared externally:
- Incompatible because this component declares a component compatible with Java 11 and the consumer needed a component compatible with Java 8
我已經確定我的 intellij 專案使用的是 Java 11


編輯:
一整天后仍然無法弄清楚。通過將系統的環境變數更改為使用 JDK 11 的路徑,嘗試了最后一次嘗試。仍然沒有奏效。我已經放棄了這個。
uj5u.com熱心網友回復:
我猜你已經閱讀了 repos .md 檔案?它可能會說明如何開始。是哪個回購?指向開源的鏈接可能會有所幫助。你試過 mvnw 嗎?如果您的專案根目錄中有這樣的檔案
uj5u.com熱心網友回復:
我是認真的......在我完成編輯問題一分鐘后說我要在嘗試一整天后放棄......我決定將我的用戶變數更新到 JDK11。
我在正式放棄之前的最后一次嘗試是將環境變數更新為使用 JDK 11。不知道 gradle 使用用戶變數來構建。
我應該成為一個垃圾人。FML

轉載請註明出處,本文鏈接:https://www.uj5u.com/qianduan/392217.html
下一篇:為什么兩種寫法的輸出不一致?
