你使用的IDE:IntelliJ IDEA
你使用的IDE版本:3.3
Fabric版本: fabric-api:0.5.3+build.308-1.16
Minecraft版本: 20w11a
yarn Mapping 文件版本: 20w11a+build.1
报错日志
> Configure project :Fabric Loom: 0.2.6-SNAPSHOT Build(jenkins #34)
:setting up loom dependencies
:merging jars
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'elementera_fabric-20w10a'.
> Failed to notify project evaluation listener.
> Failed to provide com.mojang:minecraft:20w11a : zip END header not found
> java.lang.NullPointerException (no error message)
* 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
CONFIGURE FAILED in 2s
相关代码
`build.gradle
plugins {
id 'fabric-loom' version '0.2.6-SNAPSHOT'
id 'maven-publish'
}
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
archivesBaseName = project.archives_base_name
version = project.mod_version
group = project.maven_group
dependencies {
minecraft "com.mojang:minecraft:20w11a"
mappings "net.fabricmc:yarn:20w11a+build.1:v2"
modImplementation "net.fabricmc:fabric-loader:0.7.8+build.187"
modImplementation "net.fabricmc.fabric-api:fabric-api:0.5.3+build.308-1.16"
}
processResources {
inputs.property "version", project.version
from(sourceSets.main.resources.srcDirs) {
include "fabric.mod.json"
expand "version": project.version
}
from(sourceSets.main.resources.srcDirs) {
exclude "fabric.mod.json"
}
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = "sources"
from sourceSets.main.allSource
}
jar {
from "LICENSE"
}
publishing {
publications {
mavenJava(MavenPublication) {
artifact(remapJar) {
builtBy remapJar
}
artifact(sourcesJar) {
builtBy remapSourcesJar
}
}
}
repositories {
}
相关代码
`gradle.properties
# Done to increase the memory available to gradle.
org.gradle.jvmargs=-Xmx2G
# Fabric Properties
# check these on https://fabricmc.net/use
minecraft_version=20w11a
yarn_mappings=20w11a+build.1
loader_version=0.7.8+build.187
fabric_version=0.5.3+build.308-1.16
mod_version = 1.0.0
maven_group = net.baka4n
archives_base_name = Element Era mod