cannot resolve symbol controller
来源:互联网 发布:开源博客系统 php 编辑:程序博客网 时间:2024/05/16 07:59
刚才用Intellij正在写代码的过程中,电脑突然死机黑屏了,然后强制关机后重启电脑,发现点开项目哪个文件,哪个文件报错,报错原因是类引入找不到,maven重新clean,install,package都不好使,引入类的那条语句,包可以点进去查看,发现引入的类确实存在,但编译就是显示类不存在。
解决办法:
file–invalidate caches/restart
把缓存清理并重启就可以了。
网上其它不靠谱解决方案:
1,重启Intellij
2,重启电脑
3,重新配置jdk
4,重新配置tomcat
5,项目删了重新从git上下载
这五条都试了,不好使。
intellij清理缓存并重启的官方解释:
**Cleaning System Cache**IntelliJ IDEA caches a great number of files, therefore the system cache may one day become overloaded. In certain situations the caches will never be needed again, for example, if you work with frequent short-term projects. Also, the only way to solve some conflicts is to clean out the cache.**To clean out the system caches:**On the main menu, choose File | Invalidate Caches/Restart. The Invalidate Caches message appears informing you that the caches will be invalidated and rebuilt on the next start. Use buttons in the dialog to invalidate caches, restart IntelliJ IDEA or both.**It is important to note the following:**The files are not actually deleted until IntelliJ IDEA restarts.Opening and closing a project does not result in deleting any files.**WARNING:**Cleaning out the system caches, keep in mind that:It results in clearing the local history.To avoid losing data, check in the changes to your version control system before invalidating caches.Causes a complete rebuild of all the projects ever run in the current version of IntelliJ IDEA.
IntelliJ IDEA 2016.2 Help
1 0
- cannot resolve symbol controller
- cannot resolve symbol Controller
- cannot resolve symbol 'XXXX'
- cannot resolve symbol 'simple_list_item_1'
- cannot resolve symbol R
- cannot resolve symbol r
- Cannot resolve symbol
- Cannot resolve symbol *** 解决办法
- cannot resolve symbol r
- cannot resolve symbol R
- idea cannot resolve symbol
- Cannot resolve symbol 解决方案
- Cannot resolve symbol 'SpringApplication'
- Cannot resolve symbol 'SpringApplication'
- cannot resolve symbol
- cannot resolve symbol 'Bundle'
- Cannot resolve symbol AppCompatActivity
- cannot resolve symbol xxx
- OpenGL ES 2.0 - 几种剪裁与测试
- 统一编址&独立编址&哈佛结构&冯诺依曼结构
- 中文乱码的解决方案:
- 第五章
- JQuery遍历获取table中的第一个和第四个孙子,并把第四个孙子赋值给另一个table
- cannot resolve symbol controller
- 【认证】【UK】UK FreeviewHD/Freeview+HD/FreesatHD
- 解读zookeeper的配置项
- html5移动开发-在IOS在keyup和change无法获取中文
- bios升级后读取不到u盘怎么办
- 设置生成.exe的图标
- Qt on Android:创建可伸缩界面
- 笨办法学Python笔记-习题0:准备工作
- 调整地图控件滚轮的响应方向(向前放大,向后缩小)