Google Cast示例'CastHelloText-Android'中的错误

时间:2014-02-14 07:14:58

标签: android google-cast

我正在尝试运行this Google Cast SDK example上提到的Cast SDK Android Sender Application Page

是否有人尝试过运行此示例?

我所做的更改只在res / values / strings.xml中添加了我自己的App ID,并添加了v4& v7支持库以及google-play-services.jar库。

以下是我看到的错误:

enter image description here

错误:

[2014-02-14 01:08:37 - CastHelloWorld] C:\Users\home\Documents\code\workspace\CastHelloWorld\res\menu\main.xml:20: error: **No resource identifier found for attribute 'actionProviderClass'** in package 'com.example.casthelloworld'

[2014-02-14 01:08:37 - CastHelloWorld] C:\Users\home\Documents\code\workspace\CastHelloWorld\res\menu\main.xml:20: error: **No resource identifier found for attribute 'showAsAction'** in package 'com.example.casthelloworld'

这两个文件位于res / menu / main.xml - link to file

1 个答案:

答案 0 :(得分:0)

首先,你不需要v4库,请删除它; v7包括那个。其次,确保appcompat和mediarouter支持库都正确地添加到依赖项中(mediarouter支持lib依赖于appcompat)。您的异常是说您的依赖关系设置不正确。