當我使用 java sdk 17 為 minecraft 版本 1.18.2 創建一個 minecraft forge mod 專案時,我得到以下錯誤:
Could not resolve all files for configuration ':runtimeClasspathCopy'.
> Could not find net.minecraftforge:forge:1.18.2-40.1.25_mapped_official_1.18.2.
Searched in the following locations:
- file:/C:/Users/Hendrik/.gradle/caches/forge_gradle/bundeled_repo/net/minecraftforge/forge/1.18.2-40.1.25_mapped_official_1.18.2/forge-1.18.2-40.1.25_mapped_official_1.18.2.pom
- file:/C:/Users/Hendrik/.gradle/caches/forge_gradle/bundeled_repo/net/minecraftforge/forge/1.18.2-40.1.25_mapped_official_1.18.2/forge-1.18.2-40.1.25_mapped_official_1.18.2.jar
Required by:
project :
Possible solution:
- Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
給定的檔案也沒有真正的幫助。
uj5u.com熱心網友回復:
可能是你的快取有問題,所以洗掉
C:\Users\Hendrik\.gradle\caches\forge_gradle
并重新運行 genEclipseRuns
轉載請註明出處,本文鏈接:https://www.uj5u.com/qianduan/485119.html
上一篇:使用.htaccessOpenLiteSpeed服務器正確重定向phpid
下一篇:使用spring-cloud-contract-oa3和springcloudcontractgradle插件時無法生成合約測驗
