eclipse程序正确但是cannot be resolved to a type
来源:互联网 发布:房产端口是什么意思 编辑:程序博客网 时间:2024/05/01 03:40
今天准备开始一个项目,准备在现有的项目上换个马甲,换点内容,然后就直接复制了一份原来的项目,然后在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
然后按照提示重新build问题就解决了。
转自:http://blog.csdn.net/zhouyingge1104/article/details/39031899
0 0
- eclipse程序正确但是cannot be resolved to a type
- 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"的解决办法
- [绍棠] 播放器检测系统音量键调节音量的变化并自定义音量界面
- iOS nil 的小说明
- 多个checkbook默认选中
- PhotoView源码初始化BUG修复
- github添加ssh key的时候报错:Key is invalid. Ensure you've copied the file correctly
- eclipse程序正确但是cannot be resolved to a type
- 通过unix系统底层获取和系统相关的硬件信息(cpu、内存)
- 关于git的一些常用命令
- MySQL数据库备份脚本
- 碰撞检测一重奏——长方体碰撞检测
- Android NDK, Revision 13b (October 2016)
- codeforce #381 ABC题解
- Servlet请求重新定向问题
- Java ActiveMQ 理解JMS 和 ActiveMQ基本使用