我添加了
android-support-v4.jar
,
android-support-v7-appcompat.jar
,
android-support-v7-midearouter.jar
,
我添加了“GooleCastSdkAndroid
”作为lib项目。
但它仍然报告错误:
[2013-10-22 10:21:21 - CastSampleActivity] W/ResourceType( 8256): ResXMLTree_node header size 0 is too small.<br/>
[2013-10-22 10:21:21 - CastSampleActivity] cast-android-sample-master\cast-android-sample-master\res\menu\cast_sample.xml:3: error: No resource identifier found for attribute 'actionProviderClass' in package 'com.example.castsample'<br/>
[2013-10-22 10:21:21 - CastSampleActivity]cast-android-sample-master\cast-android-sample-master\res\menu\cast_sample.xml:3: error: No resource identifier found for attribute 'showAsAction' in package 'com.example.castsample'.
有人可以帮我指出哪里错了吗?
答案 0 :(得分:4)
我解决了这个问题。
请更改
app:actionProviderClass
至android:actionProviderClass
app:showAsAction
至android:showAsAction
。