Problem with VS Code , package java

Asked

Viewed 70 times

0

Guys I’m in trouble for 3 days on VS Code already took, put again, deleted the folder ". vscode" and still persist, if I create a new project in vs code it works normally if I close and open it again no longer works, was using vs code 1 week ago and it was normal and suddenly that mistake.

The declared package "apricativo" does not match the expected package ""Java(536871240)

and if I take the folder and leave it in SRC it asks to create a source path file.

{
    "java.project.sourcePaths": [
        "src/apricativo",
        "src"
    ]
}

so if I create a folder and put the file there it works but without the package apricativo; in the code I don’t know if it’s some configuration that I accidentally touched a vs code bug? this started when I lost my files and had to create a new folder and then pulled in git bash and then it looks like what I do is just break the branch in addition to being a hassle that gets multiple folders in git hub.

inserir a descrição da imagem aqui

the image shows a test right now. the right side is a project I just created and the left side is the same project, in the folder where I normally search the projects.

So if I close the project I just created and open it normally,

I don’t know if I should set up something I don’t know, I just opened vs code and installed the pack they recommend (java) and downloaded my repository in Git Hub. and then none of the codes there work. nor if I open individually.

1 answer

0

Hello, the JVM is saying that the package was not found, I noticed in its code that it is not declared the reference of the package in main, for example if the main method is in a class within the application package

package app;

public class App {

public Static voi main(String[] args) throws Exception { System.out.println("Hello, World");

} }

hope I’ve helped.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.