【问题标题】:Appinvite_styles.xml:5: error When including Google Play Services library to eclipseAppinvite_styles.xml:5: 将 Google Play Services 库包含到 Eclipse 时出错
【发布时间】:2016-03-26 02:55:30
【问题描述】:

我需要在我的应用程序中添加广告。所以我需要在我的项目中包含 Google Play Services 库。我已经安装了最新版本的 Google Play Services (r29) 并作为 libProject 添加到我的项目中。但是当我添加这个服务库时,我收到以下错误:

workspace\Google_Play_Services_Lib\res\values-v21\appinvite_styles.xml:5: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Theme.Material.Light.DialogWhenLarge.NoActionBar'.

我该如何解决这个问题?谢谢你的帮助..

【问题讨论】:

  • 我现在也是。一个错误?

标签: android eclipse styles admob google-play-services


【解决方案1】:

刚刚将 Project SDK 更改为 20(从 21)并全部编译。

【讨论】:

  • 我将项目构建目标从 Project -> Properties -> Android 更改为 API 20,但没有任何改变。我错了=)
  • 检查模块 SDK less 21。
【解决方案2】:

我已经通过检查 Is Library 选项解决了这个问题,并且我引用了 appcompat_v7

【讨论】:

    【解决方案3】:

    我也遇到了同样的问题,现在已经解决了。以下是我遵循的步骤 - 转到项目属性-> Android - 在“项目构建目标”下,选择 Android 5.0.1。按下并清理库项目。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-31
      相关资源
      最近更新 更多