我在 Eclipse 中导入了示例项目 CastSampleActivity(Googlecast sampleapp for android)。我手动导入googlecastsdk,通过操作【项目】-【Android工具】-【添加支持库】导入android支持库。
下载 [Android Support Library,revision 18] 后,[android-support-v4.jar] 在 [/libs] 中。
然而错误发生在 2 个文件中,1 个是 CastSampleActivity.java;
"The import android.support.v7.app cannot be resolved"
"The import android.support.v4 cannot be resolved"
1是cast_sample.xml;
"No resource identifier found for attribute 'showAsAction' in package 'com.example.castsample' cast_sample.xml /CastSampleActivity/res/menu line 4 Android AAPT Problem"
"No resource identifier found for attribute 'actionProviderClass' in package 'com.example.castsample' cast_sample.xml /CastSampleActivity/res/menu line 4 Android AAPT Problem"
有人有答案吗?