Jump to content

BUILD FAILED in 6s


Recommended Posts

Всем привет!
Сижу, настраиваю Gradle в intelliJ IDEA. Мне нужно написать в теминале своего проекта (1.16.5-mdk) команду - `./gradlew.bat setupDevWorkspace` чтобы загрузить важные компаненты, но вместо этого выдаёт такую ошибку → 

Spoiler

PS C:\Users\danil\Desktop\1.16.5-mdk> ./gradlew.bat setupDevWorkspace
To honour the JVM settings for this build a single-use Daemon process will be forked. See https://docs.gradle.org/7.3.3/userguide/gradle_daemon.html#sec:disabling_the_daemon.
Daemon will be stopped at the end of the build 

> Configure project :
Java: 1.8.0_412 JVM: 25.412-b08(Temurin) Arch: amd64
WARNING: This project is configured to use the official obfuscation mappings provided by Mojang. These mapping fall under their associated license, you should be fully aware of this license. For the latest license text, refer below, or the reference copy here: https://github.com/MinecraftForge/MCPConfig/blob/master/Mojang.md, You can hide this warning by running the `hideOfficialWarningUntilChanged` task
WARNING: (c) 2020 Microsoft Corporation. These mappings are provided "as-is" and you bear the risk of using them. You may copy and use the mappings for development purposes, but you may not redistribute the mappings complete and
 unmodified. Microsoft makes no warranties, express or implied, with respect to the mappings provided here.  Use and modification of this document or the source code (in any form) of Minecraft: Java Edition is governed by the Minecraft End User License Agreement available at https://account.mojang.com/documents/minecraft_eula.

FAILURE: Build failed with an exception.

* What went wrong:
Task 'setupDevWorkspace' not found in root project '1.16.5-mdk'.

* Try:
> Run gradlew tasks to get a list of available tasks.
> 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.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.3.3/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 6s

Пожалуйста, кто умеет с этим работать, помогите решить данную проблему.

Link to comment
Share on other sites

Решил установить `gradle-7.6.4-all.zip`. Всё равно не помогло. Выдаёт уже другую ошибку когда я нажимаю на `Load Gradle Changes` → 
 

Spoiler

Build file 'C:\Users\danil\Desktop\untitled\build.gradle' line: 5

Plugin [id: 'net.minecraftforge.gradle', version: '[1.16.5)'] was not found in any of the following sources:

* 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.
 

 

Link to comment
Share on other sites

Ура! Я решил эти все ошибки. Я просто установил плагин `Minecraft Development`, создал новый Minecraft проект и указал в настройках `Project Structure...` →
SDK:    temurin-1.8 Eclipse Temurin 1.8.0_412
Launguage level:    SDK default

Теперь мне надо как-то решить проблему с импортом →

import net.minecraft.client.Minecraft;
import net.minecraftforge.client.event.InputUpdateEvent;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.event.TickEvent;
import net.minecraftforge.client.event.InputUpdateEvent;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod;

То что подчёркнутым, это то что не хочет загружаться. Пойду сейчас искать как решить это пробоему.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.