Jump to content

Recommended Posts

Posted

I have a mod set up and it works fine when running

:runClient

with Gradle. The issue I have though, is that when running

:build

, the build terminates at

:extractRangemapReplacedMain

. This only seems to happen for one of my mods though. That depends on another mod which builds just fine.

 

I've tried running

gradle clean

, deleting ~/.gradle, as well as deleting my mod's

.gradle

and

build

folders. Doing neither helped.

 

Forge Vesion:

1.9.4-12.17.0.1990

 

gradle build

output:

 

  Reveal hidden contents

 

 

build.gradle

:

 

  Reveal hidden contents

 

 

settings.gradle

:

 

  Reveal hidden contents

 

  • 3 months later...
Posted

I found that this problem occurs when I define a constructor of a class defined in a location that can not be reached from outside.

 

// A.java
public class A {
public void example() {
	// class in method
	class B {
		// constructor of class
		public B() {
			// define constructor
		}
	}
	new B();
}
}

It should be solved by defining it to be visible from the outside.

// A.java
public class A {
public void example() {
	new B();
}

// class in class
class B {
	// constructor of class
	public B() {
		// define constructor
	}
}
}

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

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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