Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Gradle cannot build in IntelliJ due to it not finding the Forge files (apparently)

Featured Replies

Posted

Hi there!

I've recently been starting out with mod programming in Minecraft. As a version i chose 1.16.5 and downloaded the appropriate Forge MDK. I followed the wiki and ran

gradlew genIntellijRuns

 

After that I tried to start the game and got the following error message in in the "Build Output" tab:

Execution failed for task ':compileJava'.
> Could not resolve all files for configuration ':compileClasspath'.
   > Could not find net.minecraftforge:forge:1.16.5-36.1.4_mapped_official_1.16.5.
     Searched in the following locations:
       - https://files.minecraftforge.net/maven/net/minecraftforge/forge/1.16.5-36.1.4_mapped_official_1.16.5/forge-1.16.5-36.1.4_mapped_official_1.16.5.module
       - https://files.minecraftforge.net/maven/net/minecraftforge/forge/1.16.5-36.1.4_mapped_official_1.16.5/forge-1.16.5-36.1.4_mapped_official_1.16.5.pom
       - https://files.minecraftforge.net/maven/net/minecraftforge/forge/1.16.5-36.1.4_mapped_official_1.16.5/forge-1.16.5-36.1.4_mapped_official_1.16.5.jar
       - file:/C:/Users/nbste/.gradle/caches/forge_gradle/bundeled_repo/net/minecraftforge/forge/1.16.5-36.1.4_mapped_official_1.16.5/forge-1.16.5-36.1.4_mapped_official_1.16.5.pom
       - file:/C:/Users/nbste/.gradle/caches/forge_gradle/bundeled_repo/net/minecraftforge/forge/1.16.5-36.1.4_mapped_official_1.16.5/forge-1.16.5-36.1.4_mapped_official_1.16.5.jar
       - https://libraries.minecraft.net/net/minecraftforge/forge/1.16.5-36.1.4_mapped_official_1.16.5/forge-1.16.5-36.1.4_mapped_official_1.16.5.jar
       - https://repo.maven.apache.org/maven2/net/minecraftforge/forge/1.16.5-36.1.4_mapped_official_1.16.5/forge-1.16.5-36.1.4_mapped_official_1.16.5.pom
     Required by:
         project :

Possible solution:
 - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html

I unfortunately do not understand how to transfer the solutions from the "Possible Solutions" link to my own problem. It is also noticeable that in the ExampleMod class minecraft, minecraftforge.common, minecraftforge.event, minecraftforge.eventbus, minecraftforge.fml and apache.logging aren't found and therefore are red.

I hope I provided enough information for you to be able to give me a hint or to give me a solution to the problem. If anything is still needing for proper understanding, I will be determined to provide it.

Thanks in advance,

EinSteini

Edited by EinSteini
spelling

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

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.