Gradle was not able to access the internet connection

Started by Hotdogbananaman on

Topic category: Troubleshooting, bugs, and solutions

Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Gradle was not able to access the internet connection

I have tried everything, I have been troubleshooting for the past hour and nothing. At first it was just normal error messages, but finally I got this one (gradle cannot access internet because connection/firewall) I turned of the firewall, nothing. Allowed access to it through the firewall (even though it was off) nothing! also every once in awhile I get the same error message I did before I got this one which was:

Executing Gradle task: eclipse
Build info: MCreator 2022.2.34517, forge-1.18.2, 64-bit, 16161 MB, Windows 10, JVM 17.0.3, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk, started on: 2022-08-22-14:22:39
 
> Configure project :
The code of this workspace uses official obfuscation mappings provided by Mojang. These mappings fall under their associated license you should be fully aware of.
(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.
 
Fatal Error lwjgl-glfw-3.2.2.pom:11:49: Invalid byte 1 of 1-byte UTF-8 sequence.
 Fatal Error lwjgl-tinyfd-3.2.2.pom:8:29: The element type "artifactId" must be terminated by the matching end-tag "</artifactId>".
 Fatal Error lwjgl-glfw-3.2.2.pom:4:121: Invalid byte 1 of 1-byte UTF-8 sequence.
 Fatal Error lwjgl-glfw-3.2.2.pom:4:121: Invalid byte 1 of 1-byte UTF-8 sequence.
 Fatal Error gson-2.8.9.pom:2:27: Invalid byte 1 of 1-byte UTF-8 sequence.
 Fatal Error gson-2.8.9.pom:2:97: Invalid byte 1 of 1-byte UTF-8 sequence.
 Fatal Error ST4-4.3.pom:11:19: Invalid byte 1 of 1-byte UTF-8 sequence.
 Fatal Error antlr-master-3.5.2.pom:12:6: Invalid byte 2 of 2-byte UTF-8 sequence.
 Fatal Error ST4-4.3.pom:2:98: Invalid byte 1 of 1-byte UTF-8 sequence.
 FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'fbgbfhghgbffv'.
> Could not resolve all files for configuration ':_compileJava_1'.
 > Could not resolve com.mojang:blocklist:1.0.10.
  Required by:
  project : > net.minecraft:client:1.18.2
  > Could not resolve com.mojang:blocklist:1.0.10.
  > Could not get resource 'https://maven.minecraftforge.net/com/mojang/blocklist/1.0.10/blocklist-…'.
  > Could not HEAD 'https://maven.minecraftforge.net/com/mojang/blocklist/1.0.10/blocklist-…'. Received status code 400 from server: Bad Request: invalihóFªœ3ot’Þ  ¡)´ÏContent-Type: text/plain; charset=utf-8
  > Could not resolve com.mojang:blocklist:1.0.10.
  > Could not get resource 'https://libraries.minecraft.net/com/mojang/blocklist/1.0.10/blocklist-1…'.
  > Could not HEAD 'https://libraries.minecraft.net/com/mojang/blocklist/1.0.10/blocklist-1…'. Received status code 403 from server: Forbidden
  > Could not resolve com.mojang:blocklist:1.0.10.
  > Could not get resource 'https://repo.maven.apache.org/maven2/com/mojang/blocklist/1.0.10/blockl…'.
  > Could not GET 'https://repo.maven.apache.org/maven2/com/mojang/blocklist/1.0.10/blockl…'. Received status code 400 from server: Bad Request
 > Could not resolve org.apache.logging.log4j:log4j-slf4j18-impl:2.17.0.
  Required by:
  project : > net.minecraft:client:1.18.2
  > Could not resolve org.apache.logging.log4j:log4j-slf4j18-impl:2.17.0.
  > Could not get resource 'https://maven.minecraftforge.net/org/apache/logging/log4j/log4j-slf4j18…'.
  > Could not HEAD 'https://maven.minecraftforge.net/org/apache/logging/log4j/log4j-slf4j18…'.
   > org.apache.http.client.ClientProtocolException (no error message)
  > Could not resolve org.apache.logging.log4j:log4j-slf4j18-impl:2.17.0.
  > Could not get resource 'https://libraries.minecraft.net/org/apache/logging/log4j/log4j-slf4j18-…'.
  > Could not HEAD 'https://libraries.minecraft.net/org/apache/logging/log4j/log4j-slf4j18-…'. Received status code 400 from server: Bad Request
  > Could not resolve org.apache.logging.log4j:log4j-slf4j18-impl:2.17.0.
  > Could not get resource 'https://repo.maven.apache.org/maven2/org/apache/logging/log4j/log4j-slf…'.
  > Could not GET 'https://repo.maven.apache.org/maven2/org/apache/logging/log4j/log4j-slf…'. Received status code 400 from server: Bad Request
 > Could not resolve com.mojang:datafixerupper:4.1.27.
  Required by:
  project : > net.minecraft:client:1.18.2
  > Could not resolve com.mojang:datafixerupper:4.1.27.
  > Could not get resource 'https://maven.minecraftforge.net/com/mojang/datafixerupper/4.1.27/dataf…'.
  > Could not GET 'https://maven.minecraftforge.net/com/mojang/datafixerupper/4.1.27/dataf…'. Received status code 400 from server: Bad Request
  > Could not resolve com.mojang:datafixerupper:4.1.27.
  > Could not get resource 'https://libraries.minecraft.net/com/mojang/datafixerupper/4.1.27/datafi…'.
  > Could not HEAD 'https://libraries.minecraft.net/com/mojang/datafixerupper/4.1.27/datafi…'. Received status code 400 from server: Bad Request
 > Could not resolve com.google.code.gson:gson:2.8.9.
  Required by:
  project : > net.minecraft:client:1.18.2
  project : > net.minecraftforge:fmlloader:1.18.2-40.1.0
  > Could not resolve com.google.code.gson:gson:2.8.9.
  > Could not parse POM https://maven.minecraftforge.net/com/google/code/gson/gson/2.8.9/gson-2…
  > Invalid byte 1 of 1-byte UTF-8 sequence.
  > Could not resolve com.google.code.gson:gson:2.8.9.
  > Could not get resource 'https://libraries.minecraft.net/com/google/code/gson/gson/2.8.9/gson-2…'.
  > Could not HEAD 'https://libraries.minecraft.net/com/google/code/gson/gson/2.8.9/gson-2…'.
   > org.apache.http.client.ClientProtocolException (no error message)
  > Could not resolve com.google.code.gson:gson:2.8.9.
  > Could not parse POM https://repo.maven.apache.org/maven2/com/google/code/gson/gson/2.8.9/gs…
  > Invalid byte 1 of 1-byte UTF-8 sequence.
 > Could not resolve com.mojang:text2speech:1.12.4.
  Required by:
  project : > net.minecraft:client:1.18.2
  > Could not resolve com.mojang:text2speech:1.12.4.
  > Could not get resource 'https://libraries.minecraft.net/com/mojang/text2speech/1.12.4/text2spee…'.
  > Could not HEAD 'https://libraries.minecraft.net/com/mojang/text2speech/1.12.4/text2spee…'. Received status code 400 from server: Bad Request
 > Could not resolve org.antlr:ST4:4.3.
  Required by:
  project : > net.minecraftforge:accesstransformers:8.0.4 > org.antlr:antlr4:4.9.1
  > Could not resolve org.antlr:ST4:4.3.
  > Could not parse POM https://maven.minecraftforge.net/org/antlr/ST4/4.3/ST4-4.3.pom
  > Invalid byte 1 of 1-byte UTF-8 sequence.
  > Could not resolve org.antlr:ST4:4.3.
  > Could not parse POM https://repo.maven.apache.org/maven2/org/antlr/ST4/4.3/ST4-4.3.pom
  > Invalid byte 1 of 1-byte UTF-8 sequence.
* 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 59s
 
BUILD FAILED
Task completed in 9 minutes and 12 seconds

Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
ok, so turns out it works…
Mon, 08/22/2022 - 22:41

ok, so turns out it works for datapacks, but not for mods... strange

Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Datapacks work, but the…
Mon, 08/22/2022 - 22:58

Datapacks work, but the button to run the client is greyed out and won't let me open it