이해도 | 초보자 |
---|---|
게임버전 (JE) | 1.20.1 |
게임버전 (BE) | 관련없음 |
혹시 이런식으로 자꾸 빌드 오류나가지구... 고쳐주실분
https://mega.nz/file/ziYQDKYA#s6UQMiMh_Eg_JWbnP6oMnCHvHrjkNUnCldSUS8z3b3E
템플릿 가져와서 해봤는데두 이러네여...
C:\Users\kimdamon\Desktop\autoarmor-template-1.20.1>gradlew clean build --refresh-dependencies
> Configure project :
Fabric Loom: 1.8.12
Refresh dependencies is in use, loom will be significantly slower.
:remapping 56 mods from modImplementation (java-api)
:remapping 55 mods from modImplementation (java-runtime)
> Task :compileClientKotlin FAILED
e: file:///C:/Users/kimdamon/Desktop/autoarmor-template-1.20.1/src/client/kotlin/com/example/AutoArmorClient.kt:3:27 Unresolved reference 'LiteralText'.
e: file:///C:/Users/kimdamon/Desktop/autoarmor-template-1.20.1/src/client/kotlin/com/example/AutoArmorClient.kt:38:85 Unresolved reference 'LiteralText'.
e: file:///C:/Users/kimdamon/Desktop/autoarmor-template-1.20.1/src/client/kotlin/com/example/AutoArmorClient.kt:38:107 Unresolved reference 'LiteralText'.
e: file:///C:/Users/kimdamon/Desktop/autoarmor-template-1.20.1/src/client/kotlin/com/example/AutoArmorClient.kt:60:40 Unresolved reference 'LiteralText'.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileClientKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
> Compilation error. See log for more details
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
BUILD FAILED in 3m 13s
6 actionable tasks: 6 executed
C:\Users\kimdamon\Desktop\autoarmor-template-1.20.1>
gamediller
10 시간 전빌드 오류 원인은 LiteralText 사용 때문입니다. Minecraft 1.17 이후 API 변경으로 LiteralText 대신 **Text.literal()**을 사용해야 합니다.
gamediller
10 시간 전또한 Fabric Loom이 사용되고 있는데,
LiteralText는 Forge 전용 API입니다.
Fabric 환경에서는 사용할 수 없습니다.
gamediller
10 시간 전템플릿이 Fabric 전용인지 확인하고, 가능하면 Fabric API GitHub 레포지토리에서 최신 템플릿을 가져와 사용하세요.