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.

Featured Replies

Posted

Hi

 

When I try to use gradle build, it gives me this error:

 

"java.util.zip.ZipException: duplicate entry: mcmod.info"

 

I decided to check if there was an actual duplicate in the build jar, and there was. I checked some more, and found all the files were duplicated. So I removed the build.gradle, and got the error on another file. We have recently updated to the latest forge, this might be the problem but I'm not sure.

 

Here is the build.gradle:

 

"buildscript {

  repositories {

    maven {

      url "https://plugins.gradle.org/m2/"

    }

  }

  dependencies {

    classpath "gradle.plugin.net.minecraftforge.gradle:ForgeGradle:2.0.2"

  }

}

 

apply plugin: "net.minecraftforge.gradle.forge"

 

version = "2.0.0-pre"

group = "net.timeless.jurassicraft"

archivesBaseName = "JurassiCraft"

 

sourceCompatibility = targetCompatibility = "1.7"

 

minecraft {

    version = "11.14.3.1552"

    runDir = "minecraft"

    replace '${version}', project.version

    mappings = "snapshot_20151107"

}

 

processResources {

    inputs.property "version", project.version

    inputs.property "mcversion", project.minecraft.version

 

    from(sourceSets.main.resources.srcDirs) {

        include 'mcmod.info'

        expand 'version': project.version, 'mcversion': project.minecraft.version

    }

 

    from(sourceSets.main.resources.srcDirs) {

        exclude 'mcmod.info'

    }

}

 

sourceSets {

    main { output.resourcesDir = output.classesDir }

}"

 

  • Author

I have tried to use the default mappings, clear cache and remove the IntelliJ resources fix, the problem still persists.

  • 1 month later...
  • 1 month later...

I too am having issues with this, only it's not just my mcmod.info file that gradle is complaining about. For now I've found that downgrading seems to work, but then of course I cannot develop for the most recent releases.

 

This issue really is irritating.

So far the best bet is to clean out your gradle project and rebuild it.. I just took my source and other files I needed out of the project folder, threw it all in the trash, and started with a fresh MDK folder.

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.