【发布时间】:2021-09-18 11:32:57
【问题描述】:
我是 10000000000% 的新手,对 Forge 模组进行编码。 我正在尝试运行此命令:
./gradlew setupdecompworkspace
通过文件路径后,我在终端中输入了这个。 我收到此错误消息:
* What went wrong:
Could not compile build file '/Users/fred/Desktop/Mods-In-Progress/LearningMod/build.gradle'.
> startup failed:
build file '/Users/fred/Desktop/Mods-In-Progress/LearningMod/build.gradle': 15: unexpected token: 16.5 @ line 15, column 13.
version =‘1.16.5-1.0.0’
^
1 error
* 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 5s
FC-MBP3-3:LearningMod MYNAME$
我的 build.gradle 文件是这样的(顺便说一句,我没有展示全部内容):
buildscript {
repositories {
maven { url = 'https://maven.minecraftforge.net' }
mavenCentral()
}
dependencies {
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '4.1.+', changing: true
}
}
apply plugin: 'net.minecraftforge.gradle'
// Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.
apply plugin: 'eclipse'
apply plugin: 'maven-publish'
version =‘1.16.5-1.0.0’
group = 'com.yourname.modid' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = 'modid'
所以,我的问题是如何修复错误消息。我已经尝试了我能想到的一切。我正在关注本教程:https://www.youtube.com/watch?v=JFVFqZo5t5Q
谢谢,
创意无人机
另外,我有一台旧的 Mac。操作系统版本 10.8 左右 Owo 很快就会有新的 好的,有人解决了这个问题,但我仍然收到错误代码,错误代码在评论中。
【问题讨论】:
标签: java eclipse gradle build.gradle minecraft-forge