我正在嘗試設置來自https://github.com/googlecast/CastHelloText-android的CastHelloText-Android示例應用程序。設置Google Cast示例的錯誤CastHelloText-Android'
我正在重新安裝14.04 x64。我昨天從Google下載了Android SDK(adt-bundle-linux-x86_64-20140702)。
Eclipse是給我以下錯誤:
error: No resource identifier found for attribute 'actionProviderClass' in package 'com.example.casthelloworld' main.xml /MainActivity/res/menu line 20 Android AAPT Problem
error: No resource identifier found for attribute 'showAsAction' in package 'com.example.casthelloworld' main.xml /MainActivity/res/menu line 20 Android AAPT Problem
這是main.xml中
<item
android:id="@+id/media_route_menu_item"
android:title="@string/media_route_menu_title"
app:actionProviderClass="android.support.v7.app.MediaRouteActionProvider"
app:showAsAction="always"/>
我有以下外部JAR文件包括:
- Android的支持-V7 -appcombat.jar
- android-support-v7-mediarouter.jar
- 谷歌播放,services.jar