-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ new post: intellij cannot resolve symbol
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
title: Resolving IntelliJ 'Cannot Resolve Symbol' Error | ||
date: 2023-11-21 16:21:40 | ||
tags: ["IntelliJ IDEA", "Error Resolution", "Maven"] | ||
--- | ||
|
||
If you've encountered the `Cannot resolve symbol...` error in IntelliJ IDEA after switching branches, you're not alone. This frustrating issue can occur even when your code is error-free and compiles successfully from the command line. | ||
|
||
## Solution | ||
|
||
To resolve this issue, follow these steps: | ||
|
||
1. Expand the Maven plugin in IntelliJ IDEA's sidebar. | ||
2. Click the `Reload All Maven Projects` button with the refresh icon. | ||
|
||
{% asset_img "intellij-error.png" %} | ||
|
||
By following these steps, you can make the `Cannot resolve symbol...` error vanish and continue coding smoothly. This simple fix can save you time and frustration. | ||
|
||
## Reference | ||
|
||
For more details and community discussions on this issue, check out [this Stack Overflow thread](https://stackoverflow.com/questions/5905896/intellij-inspection-gives-cannot-resolve-symbol-but-still-compiles-code?page=1&tab=scoredesc#tab-top). |
Binary file added
BIN
+19.1 KB
source/_posts/IntelliJ-error-Cannot-resolve-symbol/intellij-error.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.