Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/396.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Gradle生成未能通知项目评估侦听器_Java_Gradle - Fatal编程技术网

Java Gradle生成未能通知项目评估侦听器

Java Gradle生成未能通知项目评估侦听器,java,gradle,Java,Gradle,我正在尝试编译,但无法消除错误 我使用Gradle7.0 buildscript { repositories { maven { url = 'https://files.minecraftforge.net/maven' } maven { url = 'https://repo.spongepowered.org/maven' } maven { name = 'impactdevelopment-repo'

我正在尝试编译,但无法消除错误

我使用Gradle7.0

buildscript {
    repositories {
        maven { url = 'https://files.minecraftforge.net/maven' }
        maven { url = 'https://repo.spongepowered.org/maven' }
        maven {
            name = 'impactdevelopment-repo'
            url = 'https://impactdevelopment.github.io/maven/'
        }
        jcenter()
        mavenCentral()
        gradlePluginPortal()
    }
    dependencies {
        classpath group: 'com.github.ImpactDevelopment', name: 'ForgeGradle', version: '3.0.115'
        classpath group: 'com.github.ImpactDevelopment', name: 'MixinGradle', version: '0.6.2'
        classpath group: 'gradle.plugin.com.github.jengelman.gradle.plugins', name: 'shadow', version: '7.0.0'
    }
}
Im使用以下插件:

plugins {
    id 'de.undercouch.download' version '4.0.0'
    id 'com.github.johnrengelman.shadow' version '7.0.0'
    id 'java'
}
这就是失败的原因

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'addon-example'.
> Failed to notify project evaluation listener.
   > org.gradle.internal.nativeintegration.services.FileSystems.getDefault()Lorg/gradle/internal/nativeplatform/filesystem/FileSystem;
   > Could not create task ':createMcpToSrg'.
      > Could not create task ':extractSrg'.
         > java.lang.NullPointerException (no error message)
   > Could not create task ':createMcpToObf'.
      > Could not create task ':extractSrg'.
         > 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

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/7.0.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 2s
堆栈跟踪:


现在有人知道我该如何解决这个问题了吗?

我的解决办法是将gradle降级到4.10.3。我认为我使用的插件只支持小于5的gradle版本

您使用的是一些gradle插件,这里没有显示。请添加详细信息。我添加了插件。