error: No resource identifier found for attribute 'installLocation' in package 'android'

The build target, however, needs to be updated to at least API Level 8 (Android 2.2), otherwise you’ll get the following error:

error: No resource identifier found for attribute ‘installLocation’ in package ‘android’

Change the build target by editing the project properties (right-click on the project in Eclipse), and choose a target with at least API Level 8:

 <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="10" />

更改下sdk,重新清理项目,然后就ok了。或者删除android:installLocation="preferExternal"

posted @ 2012-08-30 10:31  少爷太皮  阅读(583)  评论(0编辑  收藏  举报