导入android工程后出现The resource is not on the build path of a java project
来源:互联网 发布:unity3d手游开发教程 编辑:程序博客网 时间:2024/05/16 17:44
今天下午,导入了android工程后按F3突然出现The resource is not on the build path of a java project,一时觉得很奇怪,平时自己也是这样导的,从来没有出现过这样的问题,怎么突然这个项目就出现这个了呢?
google了下,网上的解答大部分都是不要直接import,要新建个工程,选择existing sources,但是我是将整个android项目以一个java工程导入的,根本不存在这样的问题,也有的高人说重新选择src,但是我选来选去总是不行。
于是,这个问题就折磨了我一个下午了,由于是看源码,不能F3的话实在是太痛苦了,于是,整个下午我都在open project,close project,delete project,new project中度过了,但是,悲催的是,还是没弄出来。
我突然想到,为什么就只有这个项目不行呢,我导入整个项目之后,就只生成了两个文件,一个是.project,一个是.classpath,于是,我将这两个文件全部删掉,然后重新导入,惊讶的发现:还是不行!
真的是无心插柳柳成荫,就在我准备放弃的时候,抱着研究与试一试的心态,我将这两个文件与以前没有问题的项目对比了下,发现,.project基本相同,除了项目名。那么答案就很清楚了,问题出在.classpath上,果然,两个项目的.classpath文件大小有细小的差别。
然后的操作就很简单了,将一个好的项目的.classpath文件粘贴到出问题的项目 ,然后refresh一下,再进项目F3进入,问题解决!折腾了我一个下午的问题就这样解决了,真是唏嘘不已。
- 导入android工程后出现The resource is not on the build path of a java project
- 导入android工程后出现The resource is not on the build path of a java project
- the resource is not on the build path of a java project
- eclipse The resource is not on the build path of a java project 解决方法
- 在myeclipse中提示 The resource is not on the build path of a Java project
- eclipse中的the resource is not on the build path of a java project相关问题
- The resource is not on the build path of a java project
- The resource is not on the build path of a java project解决方法
- Eclipse: The resource is not on the build path of a Java project
- the resource is not on the build path of a java project
- eclipse中的the resource is not on the build path of a java project相关问题
- the resource is not on the build path of a java project错误
- The resource is not on the build path of a PHP project
- the resource is not on the build path of a php project
- Eclipse 下出现 This compilation unit is not on the build path of a Java Project 解决
- this compilation unit is not on the build path of a java project
- Eclipse this compilation is not on the build path of a java project
- Eclipse “this compilation unit is not on the build path of a java project”
- Spring 2.5 注释驱动的 IoC 功能
- Codeforence 337A Puzzles
- java中ConcurrentLinkedQueue类
- USC 1143: 显示器
- 第29天
- 导入android工程后出现The resource is not on the build path of a java project
- 证书安装
- java 字节流与字符流的区别
- px、dp和sp,这些单位有什么区别?
- ARM GNU 汇编宏定义
- html 可以拖动多个div
- 创意摄影:月球变唯美篮球
- 供求关系信息自动匹配即产品信息自动匹配
- 在jsp中使用xheditor