gradle build.gradle "version:" 问题(伪造模组)

gradle build.gradle issue with "version:"(forge modding)

我是 10000000000% 的 Coding 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。大约 OS 版本 10.8 Owo 很快就会得到一个新的 好的,有人解决了这个问题,但我仍然收到错误代码,错误代码在评论中。

您需要使用 '',而不是 ‘’。将该行替换为 version ='1.16.5-1.0.0'.