Skip to content

Commit

Permalink
✨ new post: intellij cannot resolve symbol
Browse files Browse the repository at this point in the history
Asing1001 committed Nov 21, 2023
1 parent da52c1e commit 3b853d9
Showing 2 changed files with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions source/_posts/IntelliJ-error-Cannot-resolve-symbol.md
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).
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3b853d9

Please sign in to comment.