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.
I did't included that but when I rename the class from utils to something else everything works normally
You may have one specific file name mapped incorrectly to Text file type like this issue: https://stackoverflow.com/a/13374653/104891 .
do you know what to do know cause i didnt found anything about existing files
Please share a screenshot of the issue and a sample project: https://uploads.jetbrains.com.
why you cant answer me what to do now
Because the issue is not clear from the provided information and we need more details to understand the problem.
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
Sorry, it doesn't help to identify the problem, a sample project would be needed if you want us to investigate it further.
what do you exactly mean as sample project
File | Export | Project to Zip file or https://stackoverflow.com/help/mcve.
upload id
2020_08_05_DXL2aBVxq7JXqHQr
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.
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
OK, the project now builds without errors. How do I reproduce the problem you are reporting?
try to refractor class GuiUtils to Utils
but that error is not in IDE its when you run the jar
How do I run it to reproduce the problem?
you need to setup minecraft server \
for 1.15.2
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.
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.
can you please refractor the name of the GuiUtils to Utils and send me Jar file
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
i cant i dont have maven set
guess what
Setting Maven takes 1 minute: https://maven.apache.org/guides/getting-started/windows-prerequisites.html .
did u saw what i sent
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.
what if its i created the project using intellij then sended you the same project what if the project by itself is broken