gpt4 book ai didi

android - 无法在 eclipse 中导入 android 支持库

转载 作者:太空宇宙 更新时间:2023-11-03 12:56:35 26 4
gpt4 key购买 nike

我在 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"

有人知道吗?

最佳答案

以防万一其他答案不起作用,这对我有用:Project--Properties--Android--Is Library--Add..并添加了 appcompat v7 2

关于android - 无法在 eclipse 中导入 android 支持库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19046156/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com