您好,我正在尝试使用谷歌的 chrome cast 设备 https://github.com/googlecast/CastVideos-android这个样本。我从 V7 库中导入了 appcompat
和 mediarouter
。我还导入了 google play service lib
和 CastCompanionLibrary-android
。所有库都是正确的,没有任何错误。但是当我尝试构建视频示例时,它在 styles-castvideo.xml
中给我一些资源错误。它给出了以下资源的错误
<style name="ShowcaseView">
<item name="sv_titleTextAppearance">@style/TextAppearance.ShowcaseView.Title</item>
<item name="sv_detailTextAppearance">@style/TextAppearance.ShowcaseView.Detail</item>
<item name="sv_backgroundColor">#CC000000</item>
<item name="sv_buttonText">@string/ok</item>
<item name="sv_showcaseColor">@color/yellow</item>
</style>
我是不是漏掉了什么。需要一些帮助。谢谢。
最佳答案
ShowcaseView 应该添加为库。 https://github.com/naddaf/ShowcaseView 依赖
CastCompanionLibrary-android:可在此处下载 https://github.com/googlecast/CastCompanionLibrary-android
ShowcaseView(详见更改列表 1.1 -> 1.2)
关于android - 构建 android chrome cast 视频示例时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25929028/