有时候在新创建的android项目或者导入进来的项目的时候会出现Android requires .class compatibility set to 5.0. Please fix project properties.这个错误.大概的意思是因为android的版本不一致导致的吧。主要是由于google原生的SDK和我自己编译的SDK版本不一致导致的。
具体的解决方法如下:
1: 选择 project -> Android Tools ->Fix Project Properties.
重新 clean project
2:如果上面不管用,只能使用暴力一点的方法,复制源代码到信的目录. 包括AndroidManifest.xml, src/, assets/, res/. 选择 File-> New-> Android Project -> Contents -> Create project from existing source -> <your new location>