我正在尝试运行this Google Cast SDK example上提到的Cast SDK Android Sender Application Page。
是否有人尝试过运行此示例?
我所做的更改只在res / values / strings.xml中添加了我自己的App ID,并添加了v4& v7支持库以及google-play-services.jar库。
以下是我看到的错误:
错误:
[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
中答案 0 :(得分:0)
首先,你不需要v4库,请删除它; v7包括那个。其次,确保appcompat和mediarouter支持库都正确地添加到依赖项中(mediarouter支持lib依赖于appcompat)。您的异常是说您的依赖关系设置不正确。