gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-29 01:39:08 26 4
gpt4 key购买 nike

您好,我正在尝试使用谷歌的 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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com