Gradle was not able to access the internet connetcion

Status
Resolved
Issue description

Executing Gradle task: setupDecompWorkspace --refresh-dependencies

Build info: MCreator 2020.2.14217, 1.12.2, 32-bit, 2046 MB, Windows 7, JVM 1.8.0_232, JAVA_HOME: C:\Users\Administrator\Desktop\Homework\MCreator 2020.2 Windows 32bit\MCreator20202\jdk

FAILURE: Build failed with an exception.

* What went wrong:

A problem occurred configuring root project 'infinity'.

> Could not resolve all files for configuration ':classpath'.

   > Could not resolve net.minecraftforge:forgeflower:1.0.342-SNAPSHOT.

     Required by:

         project : > net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT

      > Could not resolve net.minecraftforge:forgeflower:1.0.342-SNAPSHOT.

         > Could not get resource 'https://jcenter.bintray.com/net/minecraftforge/forgeflower/1.0.342-SNAP…'.

            > Could not HEAD 'https://jcenter.bintray.com/net/minecraftforge/forgeflower/1.0.342-SNAP…'.

               > Connect to repo.jfrog.org:443 [repo.jfrog.org/54.158.201.240, repo.jfrog.org/54.85.185.88] failed: Read timed out

   > Could not resolve org.jvnet.localizer:localizer:1.12.

     Required by:

         project : > net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT > com.cloudbees:diff4j:1.1

      > Skipped due to earlier error

   > Could not resolve commons-io:commons-io:1.4.

     Required by:

         project : > net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT > com.cloudbees:diff4j:1.1

      > Skipped due to earlier error

   > Could not resolve org.apache.httpcomponents:httpcore:4.3.2.

     Required by:

         project : > net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT > org.apache.httpcomponents:httpclient:4.3.3

      > Skipped due to earlier error

   > Could not resolve commons-logging:commons-logging:1.1.3.

     Required by:

         project : > net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT > org.apache.httpcomponents:httpclient:4.3.3

      > Skipped due to earlier error

   > Could not resolve commons-codec:commons-codec:1.6.

     Required by:

         project : > net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT > org.apache.httpcomponents:httpclient:4.3.3

      > Skipped due to earlier error

* 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

BUILD FAILED in 1m 56s

BUILD FAILED

Task completed in 126147 milliseconds

 

 

 

--------------------------------------------------------------------------------or this---------------------------------------------------------------------------------------------

 

 

 

Executing Gradle task: setupDecompWorkspace --refresh-dependencies

Build info: MCreator 2020.2.14217, 1.12.2, 32-bit, 2046 MB, Windows 7, JVM 1.8.0_232, JAVA_HOME: C:\Users\Administrator\Desktop\Homework\MCreator 2020.2 Windows 32bit\MCreator20202\jdk

This mapping 'snapshot_20171003' was designed for MC 1.12! Use at your own peril.

:deobfCompileDummyTask

:deobfProvidedDummyTask

:getVersionJson

:extractUserdev UP-TO-DATE

:extractDependencyATs SKIPPED

:extractMcpData SKIPPED

:extractMcpMappings SKIPPED

:genSrgs SKIPPED

:downloadClient SKIPPED

:downloadServer SKIPPED

:splitServerJar SKIPPED

:mergeJars SKIPPED

:deobfMcSRG SKIPPED

:decompileMc

Download https://repo.maven.apache.org/maven2/it/unimi/dsi/fastutil/7.1.0/fastut…

:decompileMc FAILED

FAILURE: Build failed with an exception.

* What went wrong:

Execution failed for task ':decompileMc'.

> Could not resolve all files for configuration ':forgeGradleMcDeps'.

   > Could not download fastutil.jar (it.unimi.dsi:fastutil:7.1.0)

      > Could not get resource 'https://repo.maven.apache.org/maven2/it/unimi/dsi/fastutil/7.1.0/fastut…'.

         > Read timed out

* 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

BUILD FAILED in 4m 49s

5 actionable tasks: 4 executed, 1 up-to-date

BUILD FAILED

Task completed in 289931 milliseconds

Issue comments

Can you access https://repo.maven.apache.org/maven2/it/unimi/dsi/fastutil/7.1.0/fastut… from the browser?

In most cases all Gradle errors are caused by one of these:

  • Firewall or antivirus blocking MCreator
  • Slow internet connection
  • Your ISP blocking certain websites
  • Too slow VPN or VPN with blocked domains that MCreator needs to access
  • Any other software blocking access to download repository

The solution to this problem and many other problems can be found in our knowledge base: https://mcreator.net/support/knowledgebase Please check the knowledge base before opening a new topic on the issue which has a known fix.

Hmm, so most likely FW is blocking MCreator is you manually can access the file. Just asked to rule out ISP.