当我导入googlecast演示时出现一些问题

时间:2013-10-22 02:27:14

标签: android

我添加了 android-support-v4.jarandroid-support-v7-appcompat.jarandroid-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'.

有人可以帮我指出哪里错了吗?

1 个答案:

答案 0 :(得分:4)

我解决了这个问题。

请更改

app:actionProviderClassandroid:actionProviderClass

app:showAsActionandroid:showAsAction