2014-02-14 1 views
1

Cast SDK Android Sender Application Page에 언급 된 this Google Cast SDK example을 실행하려고합니다.Google Cast의 오류 예 'CastHelloText-Android'

누구든지이 예제를 실행 해 보았습니까?

변경된 사항은 res/values ​​/ strings.xml에 내 앱 ID가 추가되었으며 google-play-services.jar 라이브러리 외에도 v12 & v7 지원 라이브러리가 추가되었습니다.

다음은 오류 나는 볼 수 있습니다 :

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' 

는이 두 파일 입술/메뉴에있는이/main.xml에 - link to file

+0

질문에 오류가 붙여졌습니다. – user1406716

답변

0

먼저, 당신은 v4 라이브러리가 필요하지 않습니다, 제거하십시오; v7에 포함되어 있습니다. 둘째, appcompat 및 mediarouter 지원 라이브러리가 종속성에 올바르게 추가되었는지 확인하십시오 (mediarouter 지원 lib는 appcompat에 따라 다름). 귀하의 종속성이 올바르게 설정되지 않았다는 예외는 없습니다.