Jump to content

Plugin with id 'net.minecraftforge.gradle.forge' not found.


Recommended Posts

Posted

I'm Learning to build my first Mod. But when SetupDecompworkspace it gose wrong:

--------------------------------------------------------

FAILURE: Build failed with an exception.

* Where:
Build file 'F:\Minecraft_Mod\1.12\build.gradle' line: 10

* What went wrong:
A problem occurred evaluating root project '1.12'.
> Plugin with id 'net.minecraftforge.gradle.forge' not found.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

--------------------------------------------------------

 

I didnt delete anything ,Could anyone tell me how to deal with it?

Posted

Did you change something above the line that says "Do not edit anything above this line"?

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Posted (edited)
  On 8/27/2019 at 10:05 PM, DaemonUmbra said:

Did you change something above the line that says "Do not edit anything above this line"?

Expand  

No,everything is unchanged

-----------------

buildscript {
repositories {
jcenter()
maven { url = "http://files.minecraftforge.net/maven" }
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
}
}
apply plugin: 'net.minecraftforge.gradle.forge'
//Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.
Edited by Pasta
Posted

What's the full output of the command?

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Posted
  On 8/28/2019 at 4:40 AM, DaemonUmbra said:

What's the full output of the command?

Expand  

------------------------------------------

To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/2.14/userguide/gradle_daemon.html.
Starting daemon process: workingDir = C:\Users\61946\.gradle\daemon\2.14, daemonArgs: [D:\Java\jdk\bin\java.exe, -Xmx3G, -Dfile.encoding=GBK, -Duser.country=CN, -Duser.language=zh, -Duser.variant, -cp, C:\Users\61946\.gradle\wrapper\dists\gradle-2.14-bin\3drz41ulh0bi9dhgkbzxcamxn\gradle-2.14\lib\gradle-launcher-2.14.jar, org.gradle.launcher.daemon.bootstrap.GradleDaemon, 2.14]
Starting process 'Gradle build daemon'. Working directory: C:\Users\61946\.gradle\daemon\2.14 Command: D:\Java\jdk\bin\java.exe -Xmx3G -Dfile.encoding=GBK -Duser.country=CN -Duser.language=zh -Duser.variant -cp C:\Users\61946\.gradle\wrapper\dists\gradle-2.14-bin\3drz41ulh0bi9dhgkbzxcamxn\gradle-2.14\lib\gradle-launcher-2.14.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 2.14
Successfully started process 'Gradle build daemon'
An attempt to start the daemon took 2.407 secs.
Connected to daemon DaemonInfo{pid=18656, address=[b101c6dc-df8c-481e-a637-ea71ca5c06ad port:58908, addresses:[/127.0.0.1, /0:0:0:0:0:0:0:1]], idle=false, lastBusy=1566949290641, context=DefaultDaemonContext[uid=072fade9-d691-4e4e-8399-cb00f1486a96,javaHome=D:\Java\jdk,daemonRegistryDir=C:\Users\61946\.gradle\daemon,pid=18656,idleTimeout=120000,daemonOpts=-Xmx3G,-Dfile.encoding=GBK,-Duser.country=CN,-Duser.language=zh,-Duser.variant]}. Dispatching request BuildAndStop{id=0e5a6f51-1b3e-4e1d-a507-908487dba603.1, currentDir=F:\Minecraft_Mod\1.12}.
Received result org.gradle.launcher.daemon.protocol.BuildStarted@3081f72c from daemon DaemonInfo{pid=18656, address=[b101c6dc-df8c-481e-a637-ea71ca5c06ad port:58908, addresses:[/127.0.0.1, /0:0:0:0:0:0:0:1]], idle=false, lastBusy=1566949290641, context=DefaultDaemonContext[uid=072fade9-d691-4e4e-8399-cb00f1486a96,javaHome=D:\Java\jdk,daemonRegistryDir=C:\Users\61946\.gradle\daemon,pid=18656,idleTimeout=120000,daemonOpts=-Xmx3G,-Dfile.encoding=GBK,-Duser.country=CN,-Duser.language=zh,-Duser.variant]} (build should be starting).
The client will now receive all logging from the daemon (pid: 18656). The daemon log file: C:\Users\61946\.gradle\daemon\2.14\daemon-18656.out.log
Executing build with daemon context: DefaultDaemonContext[uid=072fade9-d691-4e4e-8399-cb00f1486a96,javaHome=D:\Java\jdk,daemonRegistryDir=C:\Users\61946\.gradle\daemon,pid=18656,idleTimeout=120000,daemonOpts=-Xmx3G,-Dfile.encoding=GBK,-Duser.country=CN,-Duser.language=zh,-Duser.variant]
Starting Build
Settings evaluated using settings file 'F:\master\settings.gradle'.
Projects loaded. Root project using build file 'F:\Minecraft_Mod\1.12\build.gradle'.
Included projects: [root project '1.12']
Evaluating root project '1.12' using build file 'F:\Minecraft_Mod\1.12\build.gradle'.

FAILURE: Build failed with an exception.

* Where:
Build file 'F:\Minecraft_Mod\1.12\build.gradle' line: 10

* What went wrong:
A problem occurred evaluating root project '1.12'.
> Plugin with id 'net.minecraftforge.gradle.forge' not found.

* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.

BUILD FAILED

Total time: 6.655 secs
Received result Failure[value=org.gradle.initialization.ReportedException: org.gradle.internal.exceptions.LocationAwareException: Build file 'F:\Minecraft_Mod\1.12\build.gradle' line: 10
A problem occurred evaluating root project '1.12'.] from daemon DaemonInfo{pid=18656, address=[b101c6dc-df8c-481e-a637-ea71ca5c06ad port:58908, addresses:[/127.0.0.1, /0:0:0:0:0:0:0:1]], idle=false, lastBusy=1566949290641, context=DefaultDaemonContext[uid=072fade9-d691-4e4e-8399-cb00f1486a96,javaHome=D:\Java\jdk,daemonRegistryDir=C:\Users\61946\.gradle\daemon,pid=18656,idleTimeout=120000,daemonOpts=-Xmx3G,-Dfile.encoding=GBK,-Duser.country=CN,-Duser.language=zh,-Duser.variant]} (build should be done).

-----------------------------------------------------

That's it

Posted

Where did you get your build.gradle if you didn't modify anything above that line?

Note: I'm counting changes that you undid as modifying.

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Posted
  On 8/28/2019 at 6:45 PM, DaemonUmbra said:

Where did you get your build.gradle if you didn't modify anything above that line?

Note: I'm counting changes that you undid as modifying. 

Expand  

just type the cmdline "./gradle SetupDecompworkspace ",and then auto-create. Should i change something?

Posted

Either you did more than that and undid it or you got your MDK from somewhere you shouldn't have.

 

If you modified something and undid it see if you can spot the difference between the orignal and your undone version.

If you downloaded the MDK from somewhere other than https://files.minecraftforge.net/ then please report it.

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

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.