Android Eclipse导入源码时对自己新增的class文件提示"XXX cannot be resolved to a type"的解决办法
来源:互联网 发布:创维电视软件 编辑:程序博客网 时间:2024/05/21 08:37
Eclipse导入源码时对自己新增的class文件提示"XXX cannot be resolved to a type"错误提示,且在Eclipse中点击该class对象时无法跳转到该类,解决办法:
在android/.classpath(拷贝自android/development/ide/eclipse/.classpath)
文件中加入自己新增的文件路径即可。
如自己新增的类文件放入frameworks/base/packages/SystemUI/systemuixxx/src下面的,则在.classpath文件中加入如下代码即可
<classpathentry kind="src" path="frameworks/base/packages/SettingsProvider/src"/>
<classpathentry kind="src" path="frameworks/base/packages/SystemUI/src"/>
<classpathentry kind="src" path="frameworks/base/packages/SystemUI/systemuixxx/src"/>
最后按“F5”刷新一下已导入的工程。
0 0
- Android Eclipse导入源码时对自己新增的class文件提示"XXX cannot be resolved to a type"的解决办法
- eclipse中" cannot be resolved to a type"的解决办法
- Eclipse导入其他Eclipse写的Android项目error:Activity cannot be resolved to a type
- eclipse xxx cannot be resolved to a type
- textview cannot be resolved to a type 的解决办法
- cannot be resolved to a type的解决办法
- 导入到eclipse中的项目报错 XXX cannot be resolved to a type
- xxx cannot be resolved to a type
- xxx cannot be resolved to a type
- XXX cannot be resolved to a type!
- xxx cannot be resolved to a type
- XXX cannot be resolved to a type
- android对cannot be resolved to type问题的处理
- Myeclipse/Eclipse下JSP文件出现string cannot be resolved to a type的解决方法
- Eclipse下JSP文件出现string cannot be resolved to a type的解决方法
- Android导入的项目再次启动eclipse时提示The import android cannot be resolved的解决办法
- 用eclipse写java程序时,出现XXX cannot be resolved to a type
- Eclipse “cannot be resolved to a type”
- Android存储方式之内部存储
- [UWP]附加属性2:实现一个Canvas
- 常用对象操作:除了一般windows窗口的常用功能键外。
- Android 系统提供媒体库 URI 与 数据库的对应关系
- 随手SQL
- Android Eclipse导入源码时对自己新增的class文件提示"XXX cannot be resolved to a type"的解决办法
- PHP ElasticSearch的使用
- Redis基础
- 传纸条(dp)
- Mysql(5.7)设置字符集为UTF-8
- 趣味取小数
- 二叉树的序列化练习
- 监督学习
- Xshell实现文件的上传与下载