IncompatibleClassChangeError (Transform)

So, I was recently working with transforms, and everything was going smoothly until I updated my server to the newest version… Now, every time I try to get a Transform, the console shows an error “java.lang.IncompatibleClassChangeError: Found class org.spongepowered.api.entity.Transform, but interface was expected,” this is caused, according to the stack trace, by a ‘getFrom’ call on DisplaceEntityEvent.Move.TargetPlayer. It was working fine before… any help is appreciated. (Yes, I tried re-compiling)

Update your SpongeAPI dependency, Transform recently became a concrete class

Is there a way to force gradle to update dependencies?

Add the argument --refresh-dependencies to a gradle command.
In order to reflect the update in your IDE, use the command to refresh the project files, e.g. for eclipse,
gradle eclipse --refresh-dependencies (replace eclipse with idea for Intellij IDEA)

1 Like

Thanks, I guess I could of just googled that… which is what i did, sorry to bother, but thanks for the help…