This error occured when I tried to setup Gradle Development Environment with MCFORGE for Eclipse IDE minecraft coding.
C:\Users\Admin\Desktop\2ndattempt>gradlew setupDevWorkspace eclipse --stacktrace
Etag download for Minecraft Forge repository
/json failed with code 400
FAILURE: Build failed with an exception.
-
Where:
Build file ‘C:\Users\Admin\Desktop\2ndattempt\build.gradle’ line: 25 -
What went wrong:
A problem occurred evaluating root project ‘2ndattempt’.
java.lang.NullPointerException (no error message)
-
Try:
Run with --info or --debug option to get more log output. -
Exception is:
org.gradle.api.GradleScriptException: A problem occurred evaluating root project
‘2ndattempt’.
at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptR
unnerImpl.run(DefaultScriptRunnerFactory.java:54)
at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.
apply(DefaultScriptPluginFactory.java:187)
at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildSc
riptProcessor.java:39)
at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildSc
riptProcessor.java:26)
at org.gradle.configuration.project.ConfigureActionsProjectEvaluator.eva
luate(ConfigureActionsProjectEvaluator.java:34)
at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(L
ifecycleProjectEvaluator.java:55)
at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProj
ect.java:470)
at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProj
ect.java:79)
at org.gradle.configuration.DefaultBuildConfigurer.configure(DefaultBuil
dConfigurer.java:31)
at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(Default
GradleLauncher.java:128)
at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradle
Launcher.java:105)
at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLaun
cher.java:85)
at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildCon
troller.run(InProcessBuildActionExecuter.java:81)
at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.jav
a:33)
at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.jav
a:24)
at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProce
ssBuildActionExecuter.java:39)
at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProce
ssBuildActionExecuter.java:29)
at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:50)
at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.jav
a:171)
at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.
execute(CommandLineActionFactory.java:237)
at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.
execute(CommandLineActionFactory.java:210)
at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRunti
meValidationAction.java:35)
at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRunti
meValidationAction.java:24)
at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(
CommandLineActionFactory.java:206)
at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(
CommandLineActionFactory.java:169)
at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionRep
ortingAction.java:33)
at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionRep
ortingAction.java:22)
at org.gradle.launcher.Main.doAction(Main.java:33)
at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBoots
trap.java:54)
at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.j
ava:35)
at org.gradle.launcher.GradleMain.main(GradleMain.java:23)
at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.ja
va:30)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:127)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:56)
Caused by: java.lang.NullPointerException
at net.minecraftforge.gradle.user.patch.UserPatchExtension.checkAndSetVe
rsion(UserPatchExtension.java:100)
at net.minecraftforge.gradle.user.patch.UserPatchExtension.setVersion(Us
erPatchExtension.java:81)
at net.minecraftforge.gradle.user.patch.UserPatchExtension_Decorated.set
Version(Unknown Source)
at org.gradle.api.internal.BeanDynamicObject$MetaClassAdapter.setPropert
y(BeanDynamicObject.java:187)
at org.gradle.api.internal.BeanDynamicObject.setProperty(BeanDynamicObje
ct.java:112)
at org.gradle.api.internal.CompositeDynamicObject.setProperty(CompositeD
ynamicObject.java:101)
at net.minecraftforge.gradle.user.patch.UserPatchExtension_Decorated.set
Property(Unknown Source)
at build_5nqb9gi61iapu7aii6faqqscpd$_run_closure1.doCall(C:\Users\Admin
Desktop\2ndattempt\build.gradle:25)
at org.gradle.api.internal.ClosureBackedAction.execute(ClosureBackedActi
on.java:59)
at org.gradle.api.internal.plugins.ExtensionsStorage$ExtensionHolder.con
figure(ExtensionsStorage.java:145)
at org.gradle.api.internal.plugins.ExtensionsStorage.configureExtension(
ExtensionsStorage.java:69)
at org.gradle.api.internal.plugins.DefaultConvention$ExtensionsDynamicOb
ject.invokeMethod(DefaultConvention.java:207)
at org.gradle.api.internal.CompositeDynamicObject.invokeMethod(Composite
DynamicObject.java:147)
at org.gradle.groovy.scripts.BasicScript.methodMissing(BasicScript.java:
-
at build_5nqb9gi61iapu7aii6faqqscpd.run(C:\Users\Admin\Desktop\2ndattemp
t\build.gradle:24)
at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptR
unnerImpl.run(DefaultScriptRunnerFactory.java:52)
… 34 more
BUILD FAILED
Total time: 12.202 secs
C:\Users\Admin\Desktop\2ndattempt>
Plss guide me if this is an error and help me if i am being stupid and doing somethin wrong!