Erro when copying project form another computer

已回答

So i made a spigot plugin but when i copied it from another computer to my current it started throwing error NoSuchMethodFound in package utils class Utils so i tried to delete it and creating new class new package etc. but now when i try to call class Utils in package utils in my current project it throws the error no matter if i delete the project and create new with sama name 

评论操作 固定链接

The issue is not clear, it looks like some dependency is missing. Double check module dependencies have all the required jars added of the proper versions: https://www.jetbrains.com/help/idea/working-with-module-dependencies.html#add-a-new-dependency.

0
评论操作 固定链接

I did't included that but when I rename the class from utils to something else everything works normally

0
评论操作 固定链接

You may have one specific file name mapped incorrectly to Text file type like this issue: https://stackoverflow.com/a/13374653/104891 .

0
评论操作 固定链接

do you know what to do know cause i didnt found anything about existing files

0
评论操作 固定链接

Please share a screenshot of the issue and a sample project: https://uploads.jetbrains.com.

0
评论操作 固定链接

why you cant answer me what to do now

 

0
评论操作 固定链接

Because the issue is not clear from the provided information and we need more details to understand the problem.

0
评论操作 固定链接

there are no more details i wrote everything dont look for something else its just this

i copied a project from computer compiled got NoSuchMethod error in class utils renamed the class and it works but when i rename it back the same error appears

0
评论操作 固定链接

Sorry, it doesn't help to identify the problem, a sample project would be needed if you want us to investigate it further.

0
评论操作 固定链接

what do you exactly mean as sample project

 

0
评论操作 固定链接

upload id

2020_08_05_DXL2aBVxq7JXqHQr

0
评论操作 固定链接

This project doesn't build from Maven with the following error, the same error is reported by the IDE. It's the problem with your code.

0
评论操作 固定链接

thats not the thing i was just testing that and it saved into what i sent you just delete that line or i can send you the project again

 

 

0
评论操作 固定链接

 OK, the project now builds without errors. How do I reproduce the problem you are reporting?

0
评论操作 固定链接

try to refractor class GuiUtils to Utils 

 

0
评论操作 固定链接

but that error is not in IDE its when you run the jar

 

0
评论操作 固定链接

How do I run it to reproduce the problem?

0
评论操作 固定链接

you need to setup minecraft server \

 

0
评论操作 固定链接

I'm afraid, I'm not familiar with this setup. If you could provide the instructions, I may be able to try it to see if the issue has anything to do with IntelliJ IDEA.

0
评论操作 固定链接

But you can build the jar via Maven from the command line. If the issue persists, it means that it has nothing to do with the IDE. However if the jar built with Maven works, but you have the problem only when building it from IntelliJ IDEA, there could be something IDE specific to this issue.

0
评论操作 固定链接

can you please refractor the name of the GuiUtils to Utils and send me Jar file

 

0
评论操作 固定链接

Here is the jar built with Maven using mvn clean package -Dmaven.test.skip=true command. You can build it yourself as well.

https://dl.dropboxusercontent.com/s/tfjsm73arwwjwme/ArmorStandEditor-1.0-SNAPSHOT.jar

0
评论操作 固定链接

i cant i dont have maven set

0
评论操作 固定链接

As you get the same error with the project built using Maven, we can exclude IntelliJ IDEA from being the cause of the issue. Please ask for help at Minecraft development forums as it's not related to the IDE at all.

0
评论操作 固定链接

what if its i created the project using intellij then sended you the same project what if the project by itself is broken

 

0

请先登录再写评论。