**** cannot be resolved to a type
来源:互联网 发布:通联数据待遇怎么样 编辑:程序博客网 时间:2024/06/01 09:17
这种错误很常见,90%的原因都是没有导入jar包,如果导入的jar包都正确,那么很有可能是一下两个原因导致的:
1、jdk不匹配(或不存在)
项目指定的jdk为“jdk1.6.0_18”,而当前eclipse使用的是“jdk1.6.0_22”。需要在BuildPath | Libraries,中做简单调整。
2、eclipse查找项目类型策略所致
如果还报这错。这时,需要操作一下 Project | Clean... ,问题即可解决。原因是,机制所致。因为某些特殊原因,eclipse没能自动编译源代码到build/classes(或其他classes目录),导致类型查找不到。
阅读全文
0 0
- cannot be resolved to a type解决方案
- httpservletrequest cannot be resolved to a type
- cannot be resolved to a type
- cannot be resolved to a type
- Intent cannot be resolved to a type
- SuppressLint cannot be resolved to a type
- Cocos2dxActivity cannot be resolved to a type
- “cannot be resolved to a type” error
- String cannot be resolved to a type
- * cannot be resolved to a type/variable
- Httpservlet cannot be resolved to a type
- MapActivity cannot be resolved to a type
- ProcessEngine cannot be resolved to a type
- ActionBarActivity: cannot be resolved to a type
- *** cannot be resolved to a type异常
- OnCheckChangeListener cannot be resolved to a type
- Eclipse “cannot be resolved to a type”
- ActionBarActivity: cannot be resolved to a type
- js基础-JavaScript开发技巧总结
- service(一)初探
- Linux禁止用户登录
- js data日期初始化的5种方法
- 关于AIDL基础的填坑
- **** cannot be resolved to a type
- 今天开始第一篇博客
- [WPF] Command 之简览
- HDU1194
- 面试/笔试经历--SQL(括号匹配问题)(jdk底层SuString)---weimob
- Loadrunner(LR)中java协议调用get/post请求,并验证结果脚本
- Eclipse一直building workspace问题解决
- MapReduce实战练习三:倒排索引
- js封装任意级列表模块