๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
Trouble Shooting

[IntelliJ] java: cannot find symbol(ํด๋ž˜์Šค import๊ฐ€ ์•ˆ๋  ๋•Œ)

by ์ฃผ๋ฐœ2 2021. 6. 23.
๋ฐ˜์‘ํ˜•

๐Ÿ“Ž  [IntelliJ] java: cannot find symbol

 

 

GitHub์—์„œ ํ”„๋กœ์ ํŠธ๋ฅผ Cloneํ•œ ๋’ค ์‹คํ–‰ํ•˜๋Š”๋ฐ ๋‹ค์Œ๊ณผ ๊ฐ™์€ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ–ˆ์Šต๋‹ˆ๋‹ค.

๋‹ค๋ฅธ ํด๋ž˜์Šค๊ฐ€ import๊ฐ€ ๋˜์ง€ ์•Š๋Š” ํ˜„์ƒ์ธ๋ฐ์š”, ์•„๋ž˜ ๋ฐฉ๋ฒ•์„ ํ†ตํ•ด ํ•ด๊ฒฐํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

 

 

 

 

๐ŸŽฏ ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•

 

(1) Build > Rebuild Project

ํ™”๋ฉด ์ƒ๋‹จ์˜ Build > Rebuild Project ๋ฅผ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

 

 

์œ„ ๋ฐฉ๋ฒ•์œผ๋กœ๋Š” ํ•ด๊ฒฐ์ด ์•ˆ๋˜๋„ค์š” .. ๐Ÿ˜ญ

 

 

 

 

(2) File > Invalidate Caches... 

ํ™”๋ฉด ์ƒ๋‹จ์˜ File > Invalidate Caches... ๋ฅผ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

 

 

 

์œ„ ์ฐฝ์—์„œ INVALIDATE AND RESTART ๋ฅผ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

 

 

 

๊ตณ ์ €๋Š” ์œ„ Invalidate Caches... ๋ฐฉ๋ฒ•์œผ๋กœ ํ•ด๊ฒฐ๋˜์—ˆ์Šต๋‹ˆ๋‹ค ๐Ÿ˜ƒ

 

 

 

 

 

 

References

 

๋ฐ˜์‘ํ˜•

๋Œ“๊ธ€