一先查看project.properties(是否能打开)
若出现打不开的 则要查看网上下的文件是android几点几点几
如则表示为2.3.3
此时可以先删除网上下的源码 重新建立一个新的工程helloworld也行只是在选择的时候要选为android2.3.3的
然后再import (导入网上下的源码)应该就可以查看project.properties中的target = 多少
二 打开
查看我们所建helloword中的target 等于的值 是否与网上下载源码roject.properties中的target 的值是否一致
不一致则把网上下的target值改成与所建helloword中的相同
三 若出现
Android requires compiler compliance level 5.0 or 6.0. Found'1.4' instead. Please use Android Tools > Fix ProjectProperties.类似错误
首先清理项目,然后按以下步骤进行:
1. 项目 右键 ->android tools ->Fix Project
2. 如果不可以,检查Project -> Properties->Java Compiler
确认JDK compliance被设置为1.6,并且enable specific seetings
四若出现Could not open the editor: Resource is out of sync with the file system: ‘***/***.properties’
导入Android工程的时候会遇到project.properties或default.properties打不开,提示以上错误:
这个问题通过工程右键Refresh一下就好了,直接F5也一样。
而project.properties和default.properties有什么区别的问题,好像是ADT版本不一样,命名不一样。