cannot resolve symbol 'Strings'
来源:互联网 发布:大华网络客户端软件 编辑:程序博客网 时间:2024/06/09 19:13
springboot用到的字段显示红色字体原因,是因为没导入此包,即在pom.xml中没有添加此依赖dependency
如下图:
解决方案:
在pom.xml中添加此依赖包,此时IDEA会自动更新并添加包到Libraries,如图:
此时再看报错的代码Strings,此时Strings显示红色,但是Strings下有下划线,并有提示需要被导入的包。如图:
根据提示按快捷键alt+enter后,包被导入。此时重新输入Strings的字符就会有代码提示出现,如图:
阅读全文
0 0
- cannot resolve symbol 'Strings'
- 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 controller
- 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
- hdu1074 状压DP
- 母函数模板
- 员工持股一定提高公司绩效吗?其实这并不是个充要条件
- svn
- Reorder List问题及解法
- cannot resolve symbol 'Strings'
- thinking in java 4
- WKWebView的OC和JS交互
- lombok自动生成set,get,方法
- Spring Boot 快速入门
- CI框架去除index.php(Nginx)
- python基础面试必备(一)
- 解决127.0.0.1无法访问本地tomcat服务器
- Android补间动画之ScaleAnimation、AlphaAnimation、RotateAnimation、TranslateAnimation、AnimationSet详解