Eclipse “cannot be resolved to a type”
来源:互联网 发布:linux delay 编辑:程序博客网 时间:2024/05/22 02:01
今天准备开始一个项目,准备在现有的项目上换个马甲,换点内容,然后就直接复制了一份原来的项目,然后在Eclipse中引用。
可是用Maven跑起来的时候老是报错,然后回到Eclipse中,发现稍微改动一下就会报错:
cannot be resolved to a type
查了网上的回答,大概是这样的:机制所致。因为某些特殊原因,eclipse没能自动编译源代码到build/classes(或其他classes目录),导致类型查找不到。
可能就是因为是来自另一个项目的原因导致的。
以下是解决的方法:
Windows–>Preferences–>Java–>Compiler–>Building–>Output folder–>
勾选 Rebuild class files modified by others
0 3
- Eclipse “cannot be resolved to a type”
- Eclipse “cannot be resolved to a type” error
- Eclipse “cannot be resolved to a type” error
- Eclipse “cannot be resolved to a type” error
- Eclipse “cannot be resolved to a type” error
- Eclipse “cannot be resolved to a type” error
- Eclipse “cannot be resolved to a type” error
- Eclipse “cannot be resolved to a type” error
- Eclipse “cannot be resolved to a type” error
- ECLIPSE “CANNOT BE RESOLVED TO A TYPE” ERROR
- Eclipse “cannot be resolved to a type” error
- Eclipse “cannot be resolved to a type” error
- Eclipse “cannot be resolved to a type” error
- eclipse出现 Intent cannot be resolved to a type解决方法。
- Eclipse “cannot be resolved to a type” error
- 解决 eclipse autowire cannot be resolved to a type
- eclipse程序正确但是cannot be resolved to a type
- eclipse中" cannot be resolved to a type"的解决办法
- 年轻人怎么创业
- xcode快捷键使用
- arm linux中一些重要的宏及地址定义
- 发个json文件转lua的小工具
- ajax中接受返回字符串转为json并进行处理(不使用jquery)
- Eclipse “cannot be resolved to a type”
- AfxBeginThread的介绍/基本用法
- 题目1192:回文字符串
- 去掉联系人应用
- codeforces 463D Gargari and Permutations
- struts2日期控件--datetimepicker
- 在android 中导入项目后 包出现错误的解决方法
- 题目1194:八进制 输入一个整数,将其转换成八进制数输出
- 职场生涯规划中必须学会的十种能力