今天导入智慧北京的一个工程的时候,采用的导入方式是导入现有的代码:new---other---android project from exsting code---路径,这个时候会有一个异常,在values的目录下
然后谷歌了一下,在stackoverflow总找到了解决方案,确实有效:
Assuming you're using Eclipse, you need to right-click your project in the Package Explorer, selectProperties,
select Android,
and set Project Build Target to
API level 14 or higher. Or equivalently, set target=android-14
or
higher in your project's project.properties
file,
but note that this file is autogenerated by Eclipse, so manually editing it is not recommended.
点击properties,选择android,然后勾选高于14的版本,即可消除错误,亲测有效