android - 构建 android chrome cast 视频示例时出错

标签 android google-play-services chromecast

您好,我正在尝试使用谷歌的 chrome cast 设备 https://github.com/googlecast/CastVideos-android这个样本。我从 V7 库中导入了 appcompatmediarouter。我还导入了 google play service libCastCompanionLibrary-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/

相关文章:

android - 当应用程序处于后台时,变量保持其值多长时间?

android - 解决依赖关系时出错

java - 当某些组为空时 ExpandableListView 崩溃

android - 在新的 Android 插件 3.0.0-alpha1 中重命名输出文件

android - 自定义接收器未显示转换图标

android - Google Play 游戏 - 登录无限期循环

java - 启用 Proguard 无法在设备中运行发布应用程序

android - React Native - 应用程序在实现 HMSCore 后启动时崩溃

android - 当来自 Android 发送器应用程序的 Chromecast 时更新电视上的搜索栏

javascript - 如何在 Google Chrome Cast V2 中更改音轨