错误如上图所示。
解决方法:
1.在res/values/ 下加上 Gallery_android_galleryItemBackground.xml
内容如下:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<declare-styleable name="Gallery">
<attr name="android:galleryItemBackground">
</attr>
</declare-styleable>
</resources>