IDEA reported that java could not find the symbol to solve the problem

tags: IDEA

Problem Description

Obviously the package exists but it reports java: Symbol not found

Resolution process

1. Baidu first, idea-file-invalidate caches/restart

The result is useless

2. Maven install
The result is useless
3. Delete target
The result is useless
4. Project Structure-"Modules" select the package file of your project, Marks as Sources

is useless.

1-4 is the successful experience of netizens, which failed in my case. I am also desperate.

5. Solved my brother
I built a java.lang.String class in the project to test the parent delegation mechanism before
Then just delete this class.

Intelligent Recommendation

@Data annotation of IDEA lombok package Error: (44, 21) java: Cannot find symbol Symbol problem solved

After IDEA has installed the Lombok plug-in and imported the jar, there will be some problems when building the code. The code in other files cannot find the set or get methods in our pojo class. At f...

Solve the problem of execjs._exceptions.RuntimeUnavailableError: Could not find an available Java

1. The error code is as follows: 2. Problem location There is no corresponding environment to run JavaScript, then you need to install nodejs 3. Resolution steps 3.1 Download node 3.2 Unzip and move t...

Solve execjs._exceptions.runtimeunavailablerror: Could Not Find An Available Java error problem

1. The error code is as follows: 2. Problem positioning There is no corresponding environment for JavaScript, then you need to install NodeJS 3. Solution step 3.1 Download NODE 3.2 Unzip and move to t...

[Record] Idea could not find the custom class, the compiler reported red

background When using idea today, I wrote an enumeration by myself, a class uses the enumeration, and the program can be used normally. But when I closed the idea and then opened it, I found that the ...

IDEA reported an error when using MyBatis. Could not find resource

IDEA reported an error when using MyBatis. Could not find resource Error message: Cause: java.io.IOException: Could not find resource Tip: The following is the main content of this article, and the fo...

More Recommendation

The idea to start the project to solve the problem reported 404

  IDEA recent study, due before been using Eclipse, IDEA so the initial contact was exposed to a lot of the pit, which is probably the most vexing IDEA how to make a smooth start-up, and in this ...

Solve the IDEA project: (java: symbol not found)

problem analysis: The error is as follows: Reason: IDEA did not recognize the dependency relationship between project modules, and then automatically added module dependencies to pom.xml, resulting in...

IDEA Compilation: Java can't find a symbol

When using IDEA to compile running programs, sometimes the ‘Java ca n’t find a symbol’ reporting error. Generally, the following methods can be adopted: 1. Select the corresponding m...

Solving the IDEA project: (java: unable to find a symbol)

problem analysis: The error is as follows: Reason: IDEA does not identify the dependency between the project modules, and then automatically adds the dependencies of module to POM.XML, leading to conf...

idea java cannot find symbol variable log

When idea compiles the project, it reports that the symbol variable log cannot be found After performing various configurations on lombok, it was found that it was still invalid, and finally the compl...

Copyright  DMCA © 2018-2026 - All Rights Reserved - www.programmersought.com  User Notice

Top