第二个 ,
然后是我导入2.1ZXing版本后产生的一个错误(为什么突然还没学完1.6的就换2.1版本的,上面已经做了说明了),这是发生在主配置文件里面的错误:
<manifest xmlns:Android="http://schemas.android.com/apk/res/android"
package="com.google.zxing.client.android"
android:versionName="4.3.1"
android:versionCode="87"
android:installLocation="auto">
,
错误名称是叫:
error: No resource identifier found for attribute 'installLocation' in package 'android'
,然后我发现是因为如果要在配置文件的
manifest标签里面使用
android:installLocation="auto",或者
android:installLocation="preferExternal"
属性,那么当前android的AP至少等级为8(安卓2.2)。修正方法升级API等级至少为8(安卓2.2),或者删除android:installLocation="preferExternal" ;android:installLocation="auto" ,否则你会得到出现这个错误,不过我是升级到4.0的,因为2.1ZXing版本针对的就是android4.0以上的版本,不然里面很多类无法使用。
2.1ZXing版本的地址:点击打开链接
更多Android相关信息见Android 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=11
